Docker images and version control

Hi, I am very new to Docker, so please forgive me this very basic question:

I have set up a private registry and pushing/pulling works great. I see that the default tag of an image that is pushed, is always “latest”. If I now make changes to the image and push that up as well, it will overwrite the existing “latest” image (if I am not mistaken).

How do I push images to the registry, making sure that only the truly latest image is tagged as “latest”? Or do I never use “latest”, but rather always tag images with a version number e.g “1.0”, “1.1”, etc.?


Generally, never use latest except for quick messing around. Just tag the images based on some unique identifier.