From c976d49805aa909ca3ec2de318852b5c5d378656 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 1 Jun 2018 13:16:25 +0200 Subject: network: do not attempt to create a network in rootless mode Signed-off-by: Giuseppe Scrivano Closes: #871 Approved by: mheon --- libpod/container_internal.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 0698222a1..820f2209f 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -512,6 +512,9 @@ func (c *Container) completeNetworkSetup() error { if !c.config.PostConfigureNetNS { return nil } + if os.Getuid() != 0 { + return nil + } if err := c.syncContainer(); err != nil { return err } -- cgit v1.2.3-54-g00ecf