mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-16 02:47:41 +00:00
Merge pull request #3633 from QiWang19/network
fix build --network=container
This commit is contained in:
commit
0d441f57d6
1 changed files with 4 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue