Merge pull request #5608 from crosbymichael/net-flag-refactor
HOTFIX Update after namespace refactor
This commit is contained in:
commit
222605b5fb
|
@ -54,7 +54,7 @@ func (d *driver) createContainer(c *execdriver.Command) (*libcontainer.Container
|
||||||
|
|
||||||
func (d *driver) createNetwork(container *libcontainer.Container, c *execdriver.Command) error {
|
func (d *driver) createNetwork(container *libcontainer.Container, c *execdriver.Command) error {
|
||||||
if c.Network.HostNetworking {
|
if c.Network.HostNetworking {
|
||||||
container.Namespaces.Get("NEWNET").Enabled = false
|
container.Namespaces["NEWNET"] = false
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
container.Networks = []*libcontainer.Network{
|
container.Networks = []*libcontainer.Network{
|
||||||
|
|
Loading…
Reference in New Issue