diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-10-01 14:10:04 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-10-01 14:10:04 +0200 |
commit | ec940b08c6149d91cf969cb9b56299058c739735 (patch) | |
tree | 7a1f90e36862b8e11c64029f9c06f76385b0f3e8 | |
parent | fc13aa1f6aa514eb02f99ec092e0f479b487b001 (diff) | |
download | podman-ec940b08c6149d91cf969cb9b56299058c739735.tar.gz podman-ec940b08c6149d91cf969cb9b56299058c739735.tar.bz2 podman-ec940b08c6149d91cf969cb9b56299058c739735.zip |
rootless: do not attempt a CNI refresh
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | libpod/container_internal.go | 4 |
1 files changed, 4 insertions, 0 deletions
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() } |