'docker tag command - what can be SOURCE_IMAGE?
What can be SOURCE_IMAGE in the docker tag command? I am reading the documentation but not sure what it can be.
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
An image name is made up of slash-separated name components, optionally prefixed by a registry hostname. The hostname must comply with standard DNS rules, but may not contain underscores. If a hostname is present, it may optionally be followed by a port number in the format :8080. If not present, the command uses Docker’s public registry located at registry-1.docker.io by default. Name components may contain lowercase letters, digits and separators. A separator is defined as a period, one or two underscores, or one or more dashes. A name component may not start or end with a separator.
docker tag 0e5574283393 myregistryhost:5000/fedora/httpd:version1.0
Does image name in the document apply both to SOURCE_IMAGE and TARGET_IMAGE?
If so, If not present, the command uses Docker’s public registry located at registry-1.docker.io by default applies to SOURCE_IMAGE as well?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
