summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-06 15:54:59 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-14 23:59:21 +0000
commit0ff92f8e20edb46eb8a9d82b929e153bcdaa3044 (patch)
tree14289c5dea9b738004837144ec6c5045d2f4789d /libpod/container.go
parent824a648fcb87c112fb498db94b8e39a84ba649bd (diff)
downloadpodman-0ff92f8e20edb46eb8a9d82b929e153bcdaa3044.tar.gz
podman-0ff92f8e20edb46eb8a9d82b929e153bcdaa3044.tar.bz2
podman-0ff92f8e20edb46eb8a9d82b929e153bcdaa3044.zip
Add network namespaces to SQL state
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 12fd13f51..ada037531 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -12,6 +12,7 @@ import (
"time"
"github.com/containerd/cgroups"
+ "github.com/containernetworking/plugins/pkg/ns"
"github.com/containers/storage"
"github.com/containers/storage/pkg/archive"
"github.com/cri-o/ocicni/pkg/ocicni"
@@ -100,6 +101,10 @@ type containerRuntimeInfo struct {
OOMKilled bool `json:"oomKilled,omitempty"`
// PID is the PID of a running container
PID int `json:"pid,omitempty"`
+ // NetNSPath is the path of the container's network namespace
+ // Will only be set if config.CreateNetNS is true, or the container was
+ // told to join another container's network namespace
+ NetNS ns.NetNS
// TODO: Save information about image used in container if one is used
}