summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-13 08:05:41 -0800
committerGitHub <noreply@github.com>2018-12-13 08:05:41 -0800
commitbff29f5475f5b90a2a1f78bd0fe8b2909756774d (patch)
tree1471bf0628964b666e78282cfeac5c3515f755b5 /libpod/container.go
parente3a1a7efca7f64b125fcd4f627a871bc699b5888 (diff)
parentc93ad3762c402c56d6cbb1c7a6f1202b4962eeb4 (diff)
downloadpodman-bff29f5475f5b90a2a1f78bd0fe8b2909756774d.tar.gz
podman-bff29f5475f5b90a2a1f78bd0fe8b2909756774d.tar.bz2
podman-bff29f5475f5b90a2a1f78bd0fe8b2909756774d.zip
Merge pull request #1988 from mheon/use_dependency_resolv
Containers sharing a netns should share resolv/hosts
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container.go b/libpod/container.go
index b5346e581..18d867f41 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -1003,7 +1003,7 @@ func (c *Container) IsReadOnly() bool {
// NetworkDisabled returns whether the container is running with a disabled network
func (c *Container) NetworkDisabled() (bool, error) {
if c.config.NetNsCtr != "" {
- container, err := c.runtime.LookupContainer(c.config.NetNsCtr)
+ container, err := c.runtime.state.Container(c.config.NetNsCtr)
if err != nil {
return false, err
}