From 40f052c7e156d2a00c4703f4e18aa5fd6f4de5ca Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 23 Dec 2025 15:51:08 +0100 Subject: [PATCH] cli/command/container: use reflect IsZero Signed-off-by: Sebastiaan van Stijn --- cli/command/container/opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/container/opts.go b/cli/command/container/opts.go index 853a7f93de..fc93b59d4b 100644 --- a/cli/command/container/opts.go +++ b/cli/command/container/opts.go @@ -795,7 +795,7 @@ func parseNetworkOpts(copts *containerOptions) (map[string]*network.EndpointSett // and only a single network is specified, omit the endpoint-configuration // on the client (the daemon will still create it when creating the container) if i == 0 && len(copts.netMode.Value()) == 1 { - if ep == nil || reflect.DeepEqual(*ep, network.EndpointSettings{}) { + if ep == nil || reflect.ValueOf(*ep).IsZero() { continue } }