Skip to content

Commit

Permalink
[docker-up] Configfure docker0 MTU
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored and roboquat committed Apr 26, 2022
1 parent 4a99050 commit db903d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/docker-up/docker-up/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ func runWithinNetns() (err error) {
}

args = append(args, fmt.Sprintf("--mtu=%v", netIface.Attrs().MTU))
// configure docker0 MTU (used as control plane, not related to containers)
args = append(args, fmt.Sprintf("--network-control-plane-mtu=%v", netIface.Attrs().MTU))

if listenFDs > 0 {
os.Setenv("LISTEN_PID", strconv.Itoa(os.Getpid()))
Expand Down

0 comments on commit db903d8

Please sign in to comment.