diff --git a/cli/command/container/opts.go b/cli/command/container/opts.go index 381319b19c..fb58567ee1 100644 --- a/cli/command/container/opts.go +++ b/cli/command/container/opts.go @@ -762,7 +762,6 @@ func parseNetworkOpts(copts *containerOptions) (map[string]*networktypes.Endpoin } for i, n := range copts.netMode.Value() { - n := n if container.NetworkMode(n.Target).IsUserDefined() { hasUserDefined = true } else {