docker-squash | Squash docker images to make | Continuous Deployment library
kandi X-RAY | docker-squash Summary
kandi X-RAY | docker-squash Summary
Squash docker images to make them smaller
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-squash
docker-squash Key Features
docker-squash Examples and Code Snippets
Community Discussions
Trending Discussions on docker-squash
QUESTION
I'd like to incrementally create a docker image without keeping the intermediate layers.
I understood that docker keep the intermediate layers in order to be able to roll back to a previous version of the image, but I'm not interested in this feature.
The docker-squash project seems to provide a solution, but it has been archived and not maintained for 5 years.
Here is a simple example explaining what I mean
I have an image of 72.7MB
...ANSWER
Answered 2021-Jul-16 at 10:07Suggestion: Create a base image of your version "image1". Tag it and name it. Use it as base for creating "image2" and "image3" (FROM xyz in your Dockerfile). Following this you should be able to achieve your goal. I bet a pint on that ;-)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-squash
[Linux linux/amd64](https://github.com/jwilder/docker-squash/releases/download/v0.2.0/docker-squash-linux-amd64-v0.2.0.tar.gz)
[OSX darwin/amd64](https://github.com/jwilder/docker-squash/releases/download/v0.2.0/docker-squash-darwin-amd64-v0.2.0.tar.gz)
[tar 1.27](http://www.gnu.org/software/tar/)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page