diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-02-26 11:09:19 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-02-26 15:04:31 +0100 |
commit | 418dee100b9029bbc44141138bc3d03a66da4a99 (patch) | |
tree | 8de794ee1a2084820fdcbfdadc13c8761b46a39b /pkg/spec | |
parent | dd289950de604d0e4a1ecf9833d9c56311e06d1d (diff) | |
download | podman-418dee100b9029bbc44141138bc3d03a66da4a99.tar.gz podman-418dee100b9029bbc44141138bc3d03a66da4a99.tar.bz2 podman-418dee100b9029bbc44141138bc3d03a66da4a99.zip |
spec: allow container alias name in lookup
Previously --uts=container: expected the full container ID.
Closes: https://github.com/containers/libpod/issues/5289
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/spec')
-rw-r--r-- | pkg/spec/namespaces.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/namespaces.go b/pkg/spec/namespaces.go index 1f98e6e25..838d95c54 100644 --- a/pkg/spec/namespaces.go +++ b/pkg/spec/namespaces.go @@ -422,7 +422,7 @@ func (c *UtsConfig) ConfigureGenerator(g *generate.Generator, net *NetworkConfig if hostname == "" { switch { case utsCtrID != "": - utsCtr, err := runtime.GetContainer(utsCtrID) + utsCtr, err := runtime.LookupContainer(utsCtrID) if err != nil { return errors.Wrapf(err, "unable to retrieve hostname from dependency container %s", utsCtrID) } |