mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
fix build --network=container
Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
@ -101,6 +101,10 @@ func getNsValues(c *cliconfig.BuildValues) ([]buildah.NamespaceOption, error) {
|
|||||||
Name: string(specs.NetworkNamespace),
|
Name: string(specs.NetworkNamespace),
|
||||||
Host: true,
|
Host: true,
|
||||||
})
|
})
|
||||||
|
} else if c.Network == "container" {
|
||||||
|
ret = append(ret, buildah.NamespaceOption{
|
||||||
|
Name: string(specs.NetworkNamespace),
|
||||||
|
})
|
||||||
} else if c.Network[0] == '/' {
|
} else if c.Network[0] == '/' {
|
||||||
ret = append(ret, buildah.NamespaceOption{
|
ret = append(ret, buildah.NamespaceOption{
|
||||||
Name: string(specs.NetworkNamespace),
|
Name: string(specs.NetworkNamespace),
|
||||||
|
Reference in New Issue
Block a user