mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
Temporarily unconditionally configure network namespaces
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
This commit is contained in:
@ -531,9 +531,8 @@ func (c *createConfig) GetContainerCreateOptions() ([]libpod.CtrCreateOption, er
|
||||
options = append(options, libpod.WithName(c.Name))
|
||||
}
|
||||
// TODO parse ports into libpod format and include
|
||||
if c.netMode.IsDefault() {
|
||||
// TODO should not happen if --net=host
|
||||
options = append(options, libpod.WithNetNS([]ocicni.PortMapping{}))
|
||||
}
|
||||
|
||||
return options, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user