mirror of
https://github.com/containers/podman.git
synced 2025-06-17 06:57:43 +08:00

When trying to tag an alias (tag) of an image using only the shortname and no tag, we were unable to find the image in storage. This corrects that issue and adds an integration test to protect against regression. I also updated the man page per the filed issue. While writing the integration test, I discovered that inspect could also not find a tagged image without its :tag. Resolves Issue #385 Resolves Issue #384 Signed-off-by: baude <bbaude@redhat.com> Closes: #398 Approved by: mheon
726 B
726 B
% podman(1) podman-tag - Add tags to an image % Ryan Cole
podman-tag "1" "July 2017" "podman"
NAME
podman tag - Add an additional name to a local image
SYNOPSIS
podman [GLOBAL OPTIONS] tag IMAGE[:TAG] TARGET_NAME[:TAG] [--help|-h]
DESCRIPTION
Assigns a new alias to an image. An alias refers to the entire image name, including the optional TAG after the ':' If you do not provide a :TAG, podman will assume a :TAG of "latest" for both the IMAGE and the TARGET_NAME.
EXAMPLES
podman tag 0e3bbc2 fedora:latest
podman tag httpd myregistryhost:5000/fedora/httpd:v2
SEE ALSO
podman(1), crio(8), crio.conf(5)
HISTORY
July 2017, Originally compiled by Ryan Cole rycole@redhat.com