Skip to content

Commit

Permalink
Sync interface name with docker-up and nsinsider
Browse files Browse the repository at this point in the history
  • Loading branch information
kylos101 committed Feb 20, 2023
1 parent 81854eb commit 6354155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi
createOpts.Options = make(map[string]string)
}

netIface, err := netlink.LinkByName("ceth0")
netIface, err := netlink.LinkByName("eth0")
if err == nil {
createOpts.Options["com.docker.network.driver.mtu"] = fmt.Sprintf("%v", netIface.Attrs().MTU)
}
Expand Down

0 comments on commit 6354155

Please sign in to comment.