Docker Community Forums

Share and learn in the Docker community.

Why are Docker Image IDs different?

(Randolph Kahle) #1

I find that when Docker Hub builds my images and then I later “docker pull” the images and then do a “docker images” command I find that the Image IDs for what should be identical images are different.

Specifically, I have Docker Hub build based on GitHub branches. When three branches all refer to the same Git commit I find three different Image IDs on the built images. In addition - they do not match the image ID of the exact same Git repository if I build on my local machine.

If the Image IDs are the hash of the contents my only conclusion is that the contents are different and they should not be.

Please help me understand what is happening during the build process.

Thanks – Randy