mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix network mode for lxc 1.0
Fixes #5692 This change requires lxc 1.0+ to work and breaks lxc versions less than 1.0 for host networking. We think that this is a find tradeoff by bumping docker to only support lxc 1.0 Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
e5202de918
commit
0f27894094
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ lxc.network.type = veth
|
|||
lxc.network.link = {{.Network.Interface.Bridge}}
|
||||
lxc.network.name = eth0
|
||||
lxc.network.mtu = {{.Network.Mtu}}
|
||||
{{else if not .Network.HostNetworking}}
|
||||
{{else if .Network.HostNetworking}}
|
||||
lxc.network.type = none
|
||||
{{else}}
|
||||
# network is disabled (-n=false)
|
||||
lxc.network.type = empty
|
||||
lxc.network.flags = up
|
||||
|
|
Loading…
Reference in a new issue