![]() ![]() To prevent these problems you need to install only the packages you really need, and to clean up unnecessary files once installation is done.īecause Docker images are structured as a series of additive layers, cleanup needs to happen in the same RUN command that installed the packages. Keeping around cached copies of the package index and downloaded packages, which you don’t need once the installation is done.Installing recommended packages that you may not actually need.Installing packages adds unnecessary size by: Just installing syslog-ng increased our image by 134MB-but why? Installing less, and cleaning up $ docker image ls -format "" python-with-syslog ![]()
0 Comments
Leave a Reply. |