mirror of
https://github.com/containers/podman.git
synced 2025-10-15 10:16:28 +08:00
libpod: set cid network alias in setupContainer()
Since we have sqlite there is no point in duplicating this acroos two db backends. Just set earlier when we validate the networks anyway. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -282,6 +282,8 @@ func (r *Runtime) setupContainer(ctx context.Context, ctr *Container) (_ *Contai
|
||||
return nil, errors.New("failed to find free network interface name")
|
||||
}
|
||||
}
|
||||
// always add the short id as alias for docker compat
|
||||
opts.Aliases = append(opts.Aliases, ctr.config.ID[:12])
|
||||
|
||||
normalizeNetworks[netName] = opts
|
||||
}
|
||||
|
Reference in New Issue
Block a user