diff --git a/cli/command/cli.go b/cli/command/cli.go index 242b5f0358ff..3db1b5299e59 100644 --- a/cli/command/cli.go +++ b/cli/command/cli.go @@ -8,6 +8,7 @@ import ( "os" "path/filepath" "runtime" + "strings" "time" "github.com/docker/cli/cli" @@ -265,7 +266,7 @@ func NewAPIClientFromFlags(opts *cliflags.CommonOptions, configFile *configfile. } var clientOpts []func(*client.Client) error helper, err := connhelper.GetConnectionHelper(unparsedHost) - if err != nil { + if err != nil && !strings.HasPrefix(err.Error(), "parse ") { return &client.Client{}, err } if helper == nil {