![]() ![]() The rm -rf /var/lib/apt/lists/* command doesn’t reduce the size of the image The apt-get update command increases the image size by 23 MBģ. Every RUN command creates a new Docker layerĢ. There are several things to note in the output above:ġ. With docker history my-image we can list the layers of our Docker image: $ docker history my-imageĤ7f6bd778b89 7 minutes ago /bin/sh -c #(nop) CMD ["/bin/sh" "-c" "bash" 0 Bģ650b449ca91 7 minutes ago /bin/sh -c rm -rf /var/lib/apt/lists/* 0 BĠc43b2bf2d13 7 minutes ago /bin/sh -c apt-get install -y postgresql-client 1.101 MBĬe8e5465213b 7 minutes ago /bin/sh -c apt-get install -y postgresql 56.72 MBī3061ed9d53a 7 minutes ago /bin/sh -c apt-get install -y curl 11.38 MBĮe62ceeafb06 8 minutes ago /bin/sh -c apt-get update -y 22.16 MBįf6011336327 3 weeks ago /bin/sh -c #(nop) CMD 0 Bģ weeks ago /bin/sh -c sed -i 's/^#\s*\(deb.*universe\)$/ 1.895 kBģ weeks ago /bin/sh -c rm -rf /var/lib/apt/lists/* 0 Bģ weeks ago /bin/sh -c set -xe
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |