Docker images can be specified with or without a preceding registry domain. What are…
- User
Docker images can be specified with or without a preceding registry domain. What are these two ways of specifying them called? What do you call the part after the domain? Ideally with references to official Docker docs.
- Assistant
In Docker jargon the two ways to write an image reference are
- Fully-qualified (a.k.a. qualified) image reference
registry.example.com/namespace/repo:tag - Unqualified (a.k.a. short) image reference
namespace/repo:tag or simply repo:tag — Docker assumes the default registry (Docker Hub).
What is the part that follows the registry domain?
Docker calls everything after the registry host the repository name (or repository path).
It can itself be made of a namespace plus the “repo” proper, and it may optionally be followed by a tag ( :tag ) or digest ( @sha256:… ).Quick break-down [REGISTRY_HOST[:PORT]/] REPOSITORY [:TAG | @DIGEST] └───────────┬──────────┘ └────┬────┘ qualified / FQIN repository name
Relevant passages from the official docs
• Image name syntax
“An image name is made up of slash-separated name components, optionally prefixed by a registry hostname.”
https://docs.docker.com/engine/reference/commandline/tag/#name-syntax• Using images without a registry prefix
“If you do not specify a registry, Docker assumes Docker Hub.”
https://docs.docker.com/engine/reference/commandline/pull/#description• Definition of repository
“A repository is a set of images that share the same name but have different tags.”
https://docs.docker.com/glossary/?term=repository - Fully-qualified (a.k.a. qualified) image reference
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.