Image

Use Tags in Docker

Often we need a particular version or variation of software in order to support our project. Our site might require Apache Solr 4.x, whereas the same project could be perfectly fine with the latest version of MySQL. Since image names need to be unique on Docker Hub, it'd be inconvenient to require a separate image name for each version of a particular piece of software. Docker solves this problem by using tags.

In this tutorial, we'll:

  • Define tags
  • Describe how tags are used
  • Explain the latest tag
  • Show how to find a container's tags on Docker Hub
  • Use a tag with docker commands, and in the Compose file