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

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