summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-04-29 11:42:36 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-04-29 11:42:36 +0200
commit854293a59ae9fcf78e539f84ef1ebf7952ef925f (patch)
treeb2858bfc6924767903d3330b977061c81d4491bd /cmd/podman
parent3e912f711b875b40709075e22be3f94e21e1639a (diff)
downloadpodman-854293a59ae9fcf78e539f84ef1ebf7952ef925f.tar.gz
podman-854293a59ae9fcf78e539f84ef1ebf7952ef925f.tar.bz2
podman-854293a59ae9fcf78e539f84ef1ebf7952ef925f.zip
push: fix push with one argument
When doing a `podman push $IMG`, $IMG acts as the source and the destination. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/images/push.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go
index ef2ffd0d7..92a08255c 100644
--- a/cmd/podman/images/push.go
+++ b/cmd/podman/images/push.go
@@ -98,6 +98,7 @@ func imagePush(cmd *cobra.Command, args []string) error {
switch len(args) {
case 1:
source = args[0]
+ destination = args[0]
case 2:
source = args[0]
destination = args[1]