A Docker repository is a collection of different Docker images with the same name but different tags. Each tag usually represents a different version of the software. The repository is used to distribute a specific version or a collection of related software elements. Docker repositories are hosted by Docker registries, such as Docker Hub or privately hosted registries.