I am currently building a docker image on top of
gcc:11 . All the (newer) tags are pushed to (relatively) frequently which becomes annoying when my image build suddenly starts from base. Some docker registries offer dated tags (like
foo:3.0.1-20220714 for stability, which are never pushed to again. Gcc does not. I know there are digests to aid with stability, but these are platform-specific. What if I want my Dockerfile to remain multi-platform and reference a stable base image. Is there any other way to reference a tag in a stable way (like a git commit)? Or are tags just overwritten in the repository and that is why it is physically impossible?
(I asked a similar question on StackOverflow)