From 8c9b78e8bcb200220f2871c4c9b43d69f6939a38 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Tue, 23 Jul 2019 13:13:57 -0400 Subject: fix build --network=container Signed-off-by: Qi Wang --- cmd/podman/build.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/podman/build.go b/cmd/podman/build.go index 19337985d..14ac51889 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -101,6 +101,10 @@ func getNsValues(c *cliconfig.BuildValues) ([]buildah.NamespaceOption, error) { Name: string(specs.NetworkNamespace), Host: true, }) + } else if c.Network == "container" { + ret = append(ret, buildah.NamespaceOption{ + Name: string(specs.NetworkNamespace), + }) } else if c.Network[0] == '/' { ret = append(ret, buildah.NamespaceOption{ Name: string(specs.NetworkNamespace), -- cgit v1.2.3-54-g00ecf