We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28565d commit 40f052cCopy full SHA for 40f052c
cli/command/container/opts.go
@@ -795,7 +795,7 @@ func parseNetworkOpts(copts *containerOptions) (map[string]*network.EndpointSett
795
// and only a single network is specified, omit the endpoint-configuration
796
// on the client (the daemon will still create it when creating the container)
797
if i == 0 && len(copts.netMode.Value()) == 1 {
798
- if ep == nil || reflect.DeepEqual(*ep, network.EndpointSettings{}) {
+ if ep == nil || reflect.ValueOf(*ep).IsZero() {
799
continue
800
}
801
0 commit comments