Detect unnecessary files in Docker images
Like others here, I wasn't very happy about automatic coverage, so I made this instead https://github.com/viraptor/cruftspy
Instead of going extreme with coverage analysis, it shows places that can be manually cleaned during the build process. Maybe someone will find it useful. Smaller space gains, but gives more confidence.
🥑 Language focused docker images, minus the operating system.
Scratch is blank. Distroless includes some Debian components that removes a bunch of "gotchas" that some people relying on scratch run into.
- A /etc/passwd entry for a root user
- A /tmp directory
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Show where time is wasted during the context upload of `docker build`
I've had great success with reducing image size by running docker-show-context (https://github.com/pwaller/docker-show-context) and eliminating big and unnecessary files that it reports. This seems to go just a bit further than that with what seems like more complexity. I got timeouts when following their instructions to run it on two different containers, one of which is just a very simple web server.
A tool for exploring each layer in a docker image
This is interesting for optimizing build time. But I think it works a bit different from docker-slim, which is focused on the final resulting image size.
Dive is a good tool for the latter IME. https://github.com/wagoodman/dive
It doesn't do the work for you, but it does single out the big layers in your image.
A COMPLETE guide on how to make Docker images even smaller
3 projects | dev.to | 16 Mar 2022
How to use docker-compose, volumes, networks, and more
3 projects | dev.to | 30 Aug 2021
How can I open a docker image
2 projects | reddit.com/r/docker | 19 Nov 2022
Hey my doubt is regarding size of docker image, As seen in image below size is ard 2.3 gb, and I want to deploy it over ECR, I checked the pinned post for free tier and saw that ECR handles upto 500 mb under free tier. If at all please suggest me any workaround to deploy it under free tier.
1 project | reddit.com/r/aws | 17 Oct 2022
Help with python images
1 project | reddit.com/r/docker | 14 Oct 2022