Re:Docker-slim: Minify your Docker container image without c...
by dkarras on Tuesday December 10, 2019 @04:55PM
(#21757283)
Yes, this needs a "what is the catch?" section in readme.
[ Parent
| on HN ]
Re:Docker-slim: Minify your Docker container image without c...
by kylequest on Tuesday December 10, 2019 @07:47PM
(#21758446)
The main catch is that it targets application container images and not generic base images. This is the most common gotcha many people encounter. There has to be an app/service in the container that does something specific.
And, of course, it is possible that not all artifacts will be identified. There are a couple of ways to mitigate this. First, you can create custom probes for your app/service to make sure the app container can be analyzed much better. Second, you can explicitly tell docker-slim what you want to keep in your container image (you can specify files or executables)