{"id":"64f694dffbecaa7a","repo":"docker/cli","slug":"invalid-pull-option-s-must-be-one-of-q-q-o","errorCode":null,"errorMessage":"invalid pull option: '%s': must be one of %q, %q or %q","messagePattern":"invalid pull option: '(.+?)': must be one of %q, %q or %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/container/create.go","lineNumber":388,"sourceCode":"\t\t}); err != nil {\n\t\t\tresponse.Warnings = append(response.Warnings, fmt.Sprintf(\"injecting docker config.json into container failed: %v\", err))\n\t\t}\n\t}\n\tfor _, w := range response.Warnings {\n\t\t_, _ = fmt.Fprintln(dockerCLI.Err(), \"WARNING:\", w)\n\t}\n\n\terr = containerIDFile.Write(response.ID)\n\treturn response.ID, err\n}\n\nfunc validatePullOpt(val string) error {\n\tswitch val {\n\tcase PullImageAlways, PullImageMissing, PullImageNever, \"\":\n\t\t// valid option, but nothing to do yet\n\t\treturn nil\n\tdefault:\n\t\treturn fmt.Errorf(\n\t\t\t\"invalid pull option: '%s': must be one of %q, %q or %q\",\n\t\t\tval,\n\t\t\tPullImageAlways,\n\t\t\tPullImageMissing,\n\t\t\tPullImageNever,\n\t\t)\n\t}\n}\n\n// copyDockerConfigIntoContainer takes the client configuration and copies it\n// into the container.\n//\n// The path should be an absolute path in the container, commonly\n// /root/.docker/config.json.\nfunc copyDockerConfigIntoContainer(ctx context.Context, apiClient client.APIClient, containerID string, configPath string, config *configfile.ConfigFile) error {\n\tvar configBuf bytes.Buffer\n\tif err := config.SaveToWriter(&configBuf); err != nil {\n\t\treturn fmt.Errorf(\"saving creds: %w\", err)","sourceCodeStart":370,"sourceCodeEnd":406,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/container/create.go#L370-L406","documentation":"Error \"invalid pull option: '%s': must be one of %q, %q or %q\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/container/create.go:388 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}