summaryrefslogtreecommitdiff
path: root/libpod/networking_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-07 15:06:17 -0500
committerGitHub <noreply@github.com>2021-01-07 15:06:17 -0500
commit6c132b78f1338c01f60f0fd509710813e2832550 (patch)
tree029911e38ed5dce8ae9fc33651425e1adff485a9 /libpod/networking_linux.go
parent3cf41c4a7349d2f2529ce94801de2de9898ae27f (diff)
parentd9ebbbfe5b6a22e61091fe764ae2875aa0bf8064 (diff)
downloadpodman-6c132b78f1338c01f60f0fd509710813e2832550.tar.gz
podman-6c132b78f1338c01f60f0fd509710813e2832550.tar.bz2
podman-6c132b78f1338c01f60f0fd509710813e2832550.zip
Merge pull request #8771 from rhatdan/run
Switch references of /var/run -> /run
Diffstat (limited to 'libpod/networking_linux.go')
-rw-r--r--libpod/networking_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go
index be6867399..addf1814c 100644
--- a/libpod/networking_linux.go
+++ b/libpod/networking_linux.go
@@ -685,7 +685,7 @@ func (r *Runtime) setupNetNS(ctr *Container) error {
return errors.Wrapf(err, "failed to generate random netns name")
}
- nsPath := fmt.Sprintf("/var/run/netns/cni-%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:])
+ nsPath := fmt.Sprintf("/run/netns/cni-%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:])
if err := os.MkdirAll(filepath.Dir(nsPath), 0711); err != nil {
return err