From b351b12e273cde1f6973420b5aa911c92c51db58 Mon Sep 17 00:00:00 2001 From: baude Date: Sat, 24 Feb 2018 19:52:55 -0600 Subject: Tagging an image alias by shortname 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 Closes: #398 Approved by: mheon --- docs/podman-tag.1.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/podman-tag.1.md b/docs/podman-tag.1.md index 0728f1997..12afb4b91 100644 --- a/docs/podman-tag.1.md +++ b/docs/podman-tag.1.md @@ -6,20 +6,14 @@ podman tag - Add an additional name to a local image ## SYNOPSIS -**podman tag** +**podman [GLOBAL OPTIONS] tag IMAGE[:TAG] TARGET_NAME[:TAG]** [**--help**|**-h**] ## DESCRIPTION -Assigns a new alias to an image in a registry. An alias refers to the entire image name, including the optional **TAG** after the ':' +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. -**podman [GLOBAL OPTIONS]** - -**podman [GLOBAL OPTIONS] tag [OPTIONS]** - -## GLOBAL OPTIONS - -**--help, -h** - Print usage statement ## EXAMPLES -- cgit v1.2.3-54-g00ecf