Docker Community Forums

Share and learn in the Docker community.

Overcoming Docker's Mutable Image Tags

Hi,

Is there a reason not to always use digests for specifying the base image in their Dockerfile? In rare cases, I would use the digest when I need guaranteed consistent builds.

Thanks.

Some repos provide immutable tags, which are unambigous (if the maintainer doesn’t cheat ^^). Tags are more convenient to use than digests - but may or may not resolve to the specific image you are looking for. The digest is unambiguous, so use it if you want to address a specific image.

I am also facing same problem and looking for solution

Best Regards,
Technicalsand