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 May 22, 2023
1 parent 6e67b14 commit 0e77198
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 @@ -1167,7 +1167,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 0e77198

Please sign in to comment.