{"id":"83d7d5b7587dba71","repo":"docker/cli","slug":"failed-to-start-containers-s","errorCode":null,"errorMessage":"failed to start containers: %s","messagePattern":"failed to start containers: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/container/start.go","lineNumber":213,"sourceCode":"\t\t// We're not going to attach to anything.\n\t\t// Start as many containers as we want.\n\t\treturn startContainersWithoutAttachments(ctx, dockerCli, opts.Containers)\n\t}\n}\n\nfunc startContainersWithoutAttachments(ctx context.Context, dockerCli command.Cli, containers []string) error {\n\tvar failedContainers []string\n\tfor _, ctr := range containers {\n\t\tif _, err := dockerCli.Client().ContainerStart(ctx, ctr, client.ContainerStartOptions{}); err != nil {\n\t\t\t_, _ = fmt.Fprintln(dockerCli.Err(), err)\n\t\t\tfailedContainers = append(failedContainers, ctr)\n\t\t\tcontinue\n\t\t}\n\t\t_, _ = fmt.Fprintln(dockerCli.Out(), ctr)\n\t}\n\n\tif len(failedContainers) > 0 {\n\t\treturn fmt.Errorf(\"failed to start containers: %s\", strings.Join(failedContainers, \", \"))\n\t}\n\treturn nil\n}\n","sourceCodeStart":195,"sourceCodeEnd":217,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/container/start.go#L195-L217","documentation":"Error \"failed to start containers: %s\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/container/start.go:213 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}