Skip to content

Commit e328f43

Browse files
committed
Override network mtu value
1 parent 14ca112 commit e328f43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/compose/create.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,16 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi
10521052
}
10531053
createOpts.IPAM.Config = append(createOpts.IPAM.Config, config)
10541054
}
1055+
1056+
// override MTU value and set custom MTU one.
1057+
// This is required for gitpod.io due to the veth change
1058+
// https://github.com/gitpod-io/gitpod/pull/8955
1059+
if createOpts.Options == nil {
1060+
createOpts.Options = make(map[string]string)
1061+
}
1062+
1063+
createOpts.Options["com.docker.network.driver.mtu"] = "1440"
1064+
10551065
networkEventName := fmt.Sprintf("Network %s", n.Name)
10561066
w := progress.ContextWriter(ctx)
10571067
w.Event(progress.CreatingEvent(networkEventName))

0 commit comments

Comments
 (0)