summaryrefslogtreecommitdiff
path: root/cmd/podman/images/tag.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-05-04 10:52:29 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-05-04 14:16:34 -0400
commit6ed3b8841f00d2aa1f86678c079a119e027b0d66 (patch)
tree4befccb87c0b5e4208af4e3ed92b144d7ba45c59 /cmd/podman/images/tag.go
parent01aad516e012fe46179e053addd7a8a84788228b (diff)
downloadpodman-6ed3b8841f00d2aa1f86678c079a119e027b0d66.tar.gz
podman-6ed3b8841f00d2aa1f86678c079a119e027b0d66.tar.bz2
podman-6ed3b8841f00d2aa1f86678c079a119e027b0d66.zip
Fix errors found when comparing podman v1 --help versus V2
Mainly add missing commands to podman image, podman containers, podman system Also fix some informations messages and descriptions. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/images/tag.go')
-rw-r--r--cmd/podman/images/tag.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/podman/images/tag.go b/cmd/podman/images/tag.go
index 411313a9b..dae3416c4 100644
--- a/cmd/podman/images/tag.go
+++ b/cmd/podman/images/tag.go
@@ -18,6 +18,17 @@ var (
podman tag imageID:latest myNewImage:newTag
podman tag httpd myregistryhost:5000/fedora/httpd:v2`,
}
+
+ imageTagCommand = &cobra.Command{
+ Args: tagCommand.Args,
+ Use: tagCommand.Use,
+ Short: tagCommand.Short,
+ Long: tagCommand.Long,
+ RunE: tagCommand.RunE,
+ Example: `podman image tag 0e3bbc2 fedora:latest
+ podman image tag imageID:latest myNewImage:newTag
+ podman image tag httpd myregistryhost:5000/fedora/httpd:v2`,
+ }
)
func init() {
@@ -25,6 +36,11 @@ func init() {
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
Command: tagCommand,
})
+ registry.Commands = append(registry.Commands, registry.CliCommand{
+ Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
+ Command: imageTagCommand,
+ Parent: imageCmd,
+ })
}
func tag(cmd *cobra.Command, args []string) error {