mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
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>
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user