docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Aliases
An alias is a short or memorable alternative for a longer command.
docker tag
A Docker image reference consists of several components that describe where the image is stored and its identity. These components are:
HOST
docker.io
).
PORT
:5000
).
NAMESPACE/REPOSITORY
library
, the namespace reserved for Docker Official Images.
TAG
latest
.
example.com:5000/team/my-app:2.0
example.com
5000
team
my-app
2.0
alpine
docker.io
(default)library
(default)alpine
latest
(default)For more information on the structure and rules of image naming, refer to the Distribution reference as the canonical definition of the format.
Tag an image referenced by IDTo tag a local image with ID 0e5574283393
as fedora/httpd
with the tag version1.0
:
To tag a local image httpd
as fedora/httpd
with the tag version1.0
:
Note that since the tag name isn't specified, the alias is created for an existing local version httpd:latest
.
To tag a local image with the name httpd
and the tag test
as fedora/httpd
with the tag version1.0.test
:
To push an image to a private registry and not the public Docker registry you must include the registry hostname and port (if needed).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4