{"id":"2a0faaa4052fa81c","repo":"docker/cli","slug":"unable-to-create-docker-endpoint-config-w-2a0faa","errorCode":null,"errorMessage":"unable to create docker endpoint config: %w","messagePattern":"unable to create docker endpoint config: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/context/update.go","lineNumber":78,"sourceCode":"\tif err != nil {\n\t\treturn err\n\t}\n\tdockerContext, err := command.GetDockerContext(c)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif opts.description != \"\" {\n\t\tdockerContext.Description = opts.description\n\t}\n\n\tc.Metadata = dockerContext\n\n\ttlsDataToReset := make(map[string]*store.EndpointTLSData)\n\n\tif opts.endpoint != nil {\n\t\tdockerEP, dockerTLS, err := getDockerEndpointMetadataAndTLS(s, opts.endpoint)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"unable to create docker endpoint config: %w\", err)\n\t\t}\n\t\tc.Endpoints[docker.DockerEndpoint] = dockerEP\n\t\ttlsDataToReset[docker.DockerEndpoint] = dockerTLS\n\t}\n\tif err := validateEndpoints(c); err != nil {\n\t\treturn err\n\t}\n\tif err := s.CreateOrUpdate(c); err != nil {\n\t\treturn err\n\t}\n\tfor ep, tlsData := range tlsDataToReset {\n\t\tif err := s.ResetEndpointTLSMaterial(name, ep, tlsData); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\t_, _ = fmt.Fprintln(dockerCLI.Out(), name)\n\t_, _ = fmt.Fprintf(dockerCLI.Err(), \"Successfully updated context %q\\n\", name)","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/context/update.go#L60-L96","documentation":"Error \"unable to create docker endpoint config: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/context/update.go:78 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}