{"id":"b9b7a4224daa9ddd","repo":"docker/cli","slug":"command-v-has-exited-with-v-make-sure-the-url-i","errorCode":null,"errorMessage":"command %v has exited with %v, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s","messagePattern":"command (.+?) has exited with (.+?), make sure the URL is valid, and Docker 18\\.09 or later is installed on the remote host: stderr=(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/connhelper/commandconn/commandconn.go","lineNumber":161,"sourceCode":"\t\tselect {\n\t\tcase werr = <-werrCh:\n\t\t\tc.cmdWaitErr = werr\n\t\t\tc.cmdExited.Store(true)\n\t\tcase <-time.After(10 * time.Second):\n\t\t\tc.stderrMu.Lock()\n\t\t\tstderr := c.stderr.String()\n\t\t\tc.stderrMu.Unlock()\n\t\t\treturn fmt.Errorf(\"command %v did not exit after %v: stderr=%q\", c.cmd.Args, err, stderr)\n\t\t}\n\t}\n\n\tif werr == nil {\n\t\treturn err\n\t}\n\tc.stderrMu.Lock()\n\tstderr := c.stderr.String()\n\tc.stderrMu.Unlock()\n\treturn fmt.Errorf(\"command %v has exited with %v, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s\", c.cmd.Args, werr, stderr)\n}\n\nfunc ignorableCloseError(err error) bool {\n\treturn strings.Contains(err.Error(), os.ErrClosed.Error())\n}\n\nfunc (c *commandConn) Read(p []byte) (int, error) {\n\tn, err := c.stdout.Read(p)\n\t// check after the call to Read, since\n\t// it is blocking, and while waiting on it\n\t// Close might get called\n\tif c.closing.Load() {\n\t\t// If we're currently closing the connection\n\t\t// we don't want to call onEOF\n\t\treturn n, err\n\t}\n\n\treturn n, c.handleEOF(err)","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/connhelper/commandconn/commandconn.go#L143-L179","documentation":"Error \"command %v has exited with %v, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/connhelper/commandconn/commandconn.go:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}