summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-25 15:15:13 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-31 13:39:29 +0000
commitcfcd92847684fc65949350b7cdc4769ad1099d46 (patch)
treeafb9f946fb54fc990d83b9814b77e522b9bd4221 /libpod/container.go
parent5b9c60cc10f7dec6d0b030ad16646728f30a67e9 (diff)
downloadpodman-cfcd92847684fc65949350b7cdc4769ad1099d46.tar.gz
podman-cfcd92847684fc65949350b7cdc4769ad1099d46.tar.bz2
podman-cfcd92847684fc65949350b7cdc4769ad1099d46.zip
network: add support for rootless network with slirp4netns
slirp4netns is required to setup the network namespace: https://github.com/rootless-containers/slirp4netns Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1156 Approved by: rhatdan
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 456fc412d..77c94c7df 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -3,6 +3,7 @@ package libpod
import (
"fmt"
"net"
+ "os"
"path/filepath"
"time"
@@ -106,6 +107,9 @@ type Container struct {
valid bool
lock storage.Locker
runtime *Runtime
+
+ rootlessSlirpSyncR *os.File
+ rootlessSlirpSyncW *os.File
}
// containerState contains the current state of the container