summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-28 06:18:28 -0800
committerGitHub <noreply@github.com>2018-11-28 06:18:28 -0800
commitd346996e1512ef6efb3800d6cb762d0409d12459 (patch)
treea5f9496bffe3df5a46627f56c0fee08aafdfee55 /libpod/oci.go
parent2a496aea30da4bbe4981753c11ed095867202466 (diff)
parent95f22a2ca055d6dec0281cee109375dc4fd9b78b (diff)
downloadpodman-d346996e1512ef6efb3800d6cb762d0409d12459.tar.gz
podman-d346996e1512ef6efb3800d6cb762d0409d12459.tar.bz2
podman-d346996e1512ef6efb3800d6cb762d0409d12459.zip
Merge pull request #1849 from giuseppe/report-rootless-netmode
rootless: add new netmode "slirp4netns"
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index ee1677b67..4460402ed 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -333,7 +333,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
cmd.ExtraFiles = append(cmd.ExtraFiles, ports...)
}
- if rootless.IsRootless() {
+ if ctr.config.NetMode.IsSlirp4netns() {
ctr.rootlessSlirpSyncR, ctr.rootlessSlirpSyncW, err = os.Pipe()
if err != nil {
return errors.Wrapf(err, "failed to create rootless network sync pipe")