Skip to content

Commit d086f61

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/compose/create.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,15 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi
10381038
EnableIPv6: n.EnableIPv6,
10391039
}
10401040

1041+
// override MTU value and set custom MTU one.
1042+
// This is required for gitpod.io due to the veth change
1043+
// https://github.com/gitpod-io/gitpod/pull/8955
1044+
if createOpts.Options == nil {
1045+
createOpts.Options = make(map[string]string)
1046+
}
1047+
1048+
createOpts.Options["com.docker.network.driver.mtu"] = "1440"
1049+
10411050
if n.Ipam.Driver != "" || len(n.Ipam.Config) > 0 {
10421051
createOpts.IPAM = &network.IPAM{}
10431052
}

0 commit comments

Comments
 (0)