mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Add rootless support for cni and --uidmap
This is supported with the new rootless cni logic. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -236,9 +236,6 @@ func namespaceOptions(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.
|
||||
case specgen.Private:
|
||||
fallthrough
|
||||
case specgen.Bridge:
|
||||
if postConfigureNetNS && rootless.IsRootless() {
|
||||
return nil, errors.New("CNI networks not supported with user namespaces")
|
||||
}
|
||||
portMappings, err := createPortMappings(ctx, s, img)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user