summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-10-23 08:05:20 -0700
committerGitHub <noreply@github.com>2018-10-23 08:05:20 -0700
commitf09f9be43cc176892214a94e0fc5c0cae18898ab (patch)
treefea5d2080cf046a44d3b5c69ec4040da9160cb71 /cmd/podman
parent2e6bc3c7af261228ae7a75cb5749062928fa24b3 (diff)
parentbb98a9cd2f63cde2e31ed8c7ba626bac55822bd0 (diff)
downloadpodman-f09f9be43cc176892214a94e0fc5c0cae18898ab.tar.gz
podman-f09f9be43cc176892214a94e0fc5c0cae18898ab.tar.bz2
podman-f09f9be43cc176892214a94e0fc5c0cae18898ab.zip
Merge pull request #1664 from adrianreber/port-l
Fix podman port -l
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/port.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/port.go b/cmd/podman/port.go
index d6497d450..3355e751b 100644
--- a/cmd/podman/port.go
+++ b/cmd/podman/port.go
@@ -104,6 +104,9 @@ func portCmd(c *cli.Context) error {
containers = append(containers, container)
} else if c.Bool("latest") {
container, err = runtime.GetLatestContainer()
+ if err != nil {
+ return errors.Wrapf(err, "unable to get last created container")
+ }
containers = append(containers, container)
} else {
containers, err = runtime.GetRunningContainers()