When I push an image into the DockerHub with the tag, let’s say, 001
, should I also create another tag that will be linked to the latest build?
Yes, it is always a good idea to provide a default tag which is called latest
in docker world.
Matter of fact, I think the latest
tag does not really imply the latest status of the image. In my mind I always substitute with default
whenever I use latest
in the context of tagging or pulling tagged images. Typically the most stable image versions are tagged as latest
which can be pulled without passing an additional tag.
It would be convenient to link some build to a tag latest
, but I don’t think this is possible in Docker.