From ec940b08c6149d91cf969cb9b56299058c739735 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 1 Oct 2019 14:10:04 +0200 Subject: [PATCH] rootless: do not attempt a CNI refresh Signed-off-by: Giuseppe Scrivano --- libpod/container_internal.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libpod/container_internal.go b/libpod/container_internal.go index f1456548b20c..a4dcd23becca 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() }