From ec940b08c6149d91cf969cb9b56299058c739735 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 1 Oct 2019 14:10:04 +0200 Subject: rootless: do not attempt a CNI refresh Signed-off-by: Giuseppe Scrivano --- libpod/container_internal.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index f1456548b..a4dcd23be 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -622,6 +622,10 @@ func (c *Container) refresh() error { return err } + if rootless.IsRootless() { + return nil + } + return c.refreshCNI() } -- cgit v1.2.3-54-g00ecf