Why not ldd?
It doesn't find dependencies like /etc/ssl/certs/ca-certificates.crt or /usr/share/zoneinfo.
How I shrunk a Docker image by 98.8% – featuring fanotify
11–20 of 51 posts
Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#12Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#13Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#14https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...
Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#15If only there were some way to describe in a few lines of text what an image should contain?
Do Docker images really have to contain an entire bloated Linux distro? Even for Xen, which, as a hypervisor, provides fewer services than Docker, it's possible to write applications which run directly under Xen.
Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#16Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#17Why not ldd?
I've been playing with a project to do this. The first major obvious problem is anything that uses dlopen won't necessarily get all that it needs.
Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#18Why not just use a micro kernel container like OSV from cloud outs? Same result with less effort
Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#19Then why would you start out with a complete extra operating system in there? Why not just put the application and its dependencies in there?
To strip non-dependencies from an complete operating system sounds like a very failure prone way to accomplish almost the same thing. You really need to execute all code paths, which is difficult to guarantee (did you really run your application in all locales for example?).
Re: How I shrunk a Docker image by 98.8% – featuring fanotify
#20Isn't the point of running an application in a container, or any chrooted environment, to only isolate the application from the rest of the operating system? Then why would you start out with a complete extra operating system in there? Why not just put the application and its dependencies in there? To strip non-dependencies from an complete operating system sounds like a very failure prone way to accomplish almost th…
Packaging is hard. Let's go shopping!