mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add MTU to lxc conf to make host and container MTU match
If you are using jumbo frames the host side of the veth was being set to 1500. Docker would set the MTU of the container side of the veth to 9001. This would lead to a situation in which the two sides of the veth had different MTU sizes causing issues in network traffic. Docker-DCO-1.1-Signed-off-by: Darren Shepherd <darren.s.shepherd@gmail.com> (github: ibuildthecloud)
This commit is contained in:
parent
4f20538f73
commit
0db53bd2ec
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ const LxcTemplate = `
|
|||
lxc.network.type = veth
|
||||
lxc.network.link = {{.Network.Bridge}}
|
||||
lxc.network.name = eth0
|
||||
lxc.network.mtu = {{.Network.Mtu}}
|
||||
{{else}}
|
||||
# network is disabled (-n=false)
|
||||
lxc.network.type = empty
|
||||
|
|
Loading…
Add table
Reference in a new issue