apt: remove not allowed dist-upgrade#81
Conversation
281e0d0 to
ac6f302
Compare
|
while this is "best practice", I'm not sure we actually should stop updating the base image. "ubuntu:bionic" is still at its initial version, right? |
|
We should not update an underling layer, because it simply costs resources in build time and storage. The base image should be always up to date. |
|
Should I add the Line 10 in 2ac1e6c ? |
Do you have a reference for this? Docker Hub using old versions of the parent image might be the reason that every dist-upgrade actually upgrades a lot. |
|
Ubuntu image:
|
|
Yes, thanks! I also found this: https://anchore.com/look-often-docker-images-updated/ |
Yes please! |
Base image should be up to date.
"Avoid RUN apt-get upgrade and dist-upgrade, as many of the “essential” packages from the parent images cannot upgrade inside an unprivileged container. "
Reference:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run