{"id":"5637cdc272f77858","repo":"docker/cli","slug":"tls-data-for-s-s-s-does-not-exist-5637cd","errorCode":null,"errorMessage":"TLS data for %s/%s/%s does not exist","messagePattern":"TLS data for (.+?)/(.+?)/(.+?) does not exist","errorType":"exception","errorClass":"notFound","httpStatus":null,"severity":"error","filePath":"cli/context/store/tlsstore.go","lineNumber":41,"sourceCode":"}\n\nfunc (s *tlsStore) createOrUpdate(name, endpointName, filename string, data []byte) error {\n\tparentOfRoot := filepath.Dir(s.root)\n\tif err := os.MkdirAll(parentOfRoot, 0o755); err != nil {\n\t\treturn err\n\t}\n\tendpointDir := s.endpointDir(name, endpointName)\n\tif err := os.MkdirAll(endpointDir, 0o700); err != nil {\n\t\treturn err\n\t}\n\treturn atomicwriter.WriteFile(filepath.Join(endpointDir, filename), data, 0o600)\n}\n\nfunc (s *tlsStore) getData(name, endpointName, filename string) ([]byte, error) {\n\tdata, err := os.ReadFile(filepath.Join(s.endpointDir(name, endpointName), filename))\n\tif err != nil {\n\t\tif os.IsNotExist(err) {\n\t\t\treturn nil, notFound(fmt.Errorf(\"TLS data for %s/%s/%s does not exist\", name, endpointName, filename))\n\t\t}\n\t\treturn nil, fmt.Errorf(\"failed to read TLS data for endpoint %s: %w\", endpointName, err)\n\t}\n\treturn data, nil\n}\n\n// remove deletes all TLS data for the given context.\nfunc (s *tlsStore) remove(name string) error {\n\tif err := os.RemoveAll(s.contextDir(name)); err != nil {\n\t\treturn fmt.Errorf(\"failed to remove TLS data: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc (s *tlsStore) removeEndpoint(name, endpointName string) error {\n\tif err := os.RemoveAll(s.endpointDir(name, endpointName)); err != nil {\n\t\treturn fmt.Errorf(\"failed to remove TLS data for endpoint %s: %w\", endpointName, err)\n\t}","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/context/store/tlsstore.go#L23-L59","documentation":"Error \"TLS data for %s/%s/%s does not exist\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/context/store/tlsstore.go:41 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}