diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/adapter/containers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/adapter/containers.go b/pkg/adapter/containers.go index 2b9430d40..78057e3f9 100644 --- a/pkg/adapter/containers.go +++ b/pkg/adapter/containers.go @@ -1117,7 +1117,7 @@ func (r *LocalRuntime) Port(c *cliconfig.PortValues) ([]*Container, error) { if !c.All { names := []string{} - if len(c.InputArgs) > 1 { + if len(c.InputArgs) >= 1 { names = []string{c.InputArgs[0]} } containers, err = shortcuts.GetContainersByContext(false, c.Latest, names, r.Runtime) |