Is a known way to track versions of installed packages on docker image? There is some example packages which I install
FROM docker.io/debian:bullseye
RUN apt-get update &&
apt-get install -y --no-install-recommends ca-certificates tar ... &&
apt-get upgrade -y libc6
And now I have no control which package versions are used. Building from the same dockerfile twice might give different results. Things might suddenly start breaking and I don't know what the last working version of a library was.
I cannot hardocode a version eg
apt-get upgrade -y libc6=2.31-6
because the versions which are available in bullseye are constantly changing. And in the next few days 2.31-6
will be not available.
There is also no sense to use wildcards.
question from:
https://stackoverflow.com/questions/65652202/hardcoding-packages-versions-on-docker-image 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…