Merge pull request #1664 from adrianreber/port-l

Fix podman port -l
This commit is contained in:
OpenShift Merge Robot 2018-10-23 08:05:20 -07:00 committed by GitHub
commit f09f9be43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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()