Docker image naming and tagging

Published: Friday, 3 July 2020
By:
  • Jurn Ho

Images will always have an image ID. It is good practice to also name and tag images, so they can be referenced later.

Choose a name for the image. Use slashes to separate name components. e.g. magicmonster/great-app/login-service

Tags are used to identify a version of the image. If not specified, latest is assumed. Common tags for continuous builds are a build number or timestamp.

After deciding on both the name and tag, the image can be referred to in full as magicmonster/great-app/login-service:latest.

References