diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 3245a086be8..9660187447e 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -1324,17 +1324,17 @@ func (s *composeService) resolveOrCreateNetwork(ctx context.Context, n *types.Ne createOpts.IPAM.Config = append(createOpts.IPAM.Config, config) } - // override MTU value and set custom MTU one. - // This is required for gitpod.io due to the veth change - // https://github.com/gitpod-io/gitpod/pull/8955 - if createOpts.Options == nil { - createOpts.Options = make(map[string]string) - } + // override MTU value and set custom MTU one. + // This is required for gitpod.io due to the veth change + // https://github.com/gitpod-io/gitpod/pull/8955 + if createOpts.Options == nil { + createOpts.Options = make(map[string]string) + } - netIface, err := netlink.LinkByName("ceth0") - if err == nil { - createOpts.Options["com.docker.network.driver.mtu"] = fmt.Sprintf("%v", netIface.Attrs().MTU) - } + netIface, err := netlink.LinkByName("eth0") + if err == nil { + createOpts.Options["com.docker.network.driver.mtu"] = fmt.Sprintf("%v", netIface.Attrs().MTU) + } networkEventName := fmt.Sprintf("Network %s", n.Name) w := progress.ContextWriter(ctx)