Merge pull request #47101 from AkihiroSuda/refactor-47100
net=host: remove /var/run/docker/netns/default from OCI config
This commit is contained in:
commit
982f85b281
1 changed files with 1 additions and 4 deletions
|
@ -285,10 +285,7 @@ func WithNamespaces(daemon *Daemon, c *container.Container) coci.SpecOpts {
|
|||
})
|
||||
}
|
||||
case networkMode.IsHost():
|
||||
setNamespace(s, specs.LinuxNamespace{
|
||||
Type: specs.NetworkNamespace,
|
||||
Path: c.NetworkSettings.SandboxKey,
|
||||
})
|
||||
oci.RemoveNamespace(s, specs.NetworkNamespace)
|
||||
default:
|
||||
setNamespace(s, specs.LinuxNamespace{
|
||||
Type: specs.NetworkNamespace,
|
||||
|
|
Loading…
Add table
Reference in a new issue