mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-02-04 12:02:47 -06:00
Supress making netns symlinks when using host networking
This commit is contained in:
parent
fa8c732599
commit
38099a8f2d
@ -301,10 +301,12 @@ func (c *Container) StartCommands() cmd.CommandSet {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if c.cdata.HostConfig != nil && c.cdata.HostConfig.NetworkMode == "bridge" {
|
||||||
err = c.assureNetNS()
|
err = c.assureNetNS()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.LogEntry().WithField("error", err).Warnln("Failed to create network namespace")
|
c.LogEntry().WithField("error", err).Warnln("Failed to create network namespace")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user