{"id":"5360048beaf65446","repo":"docker/cli","slug":"error-mounting-s-to-s","errorCode":null,"errorMessage":"error mounting %s to %s","messagePattern":"error mounting (.+?) to (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/manifest/push.go","lineNumber":284,"sourceCode":"func pushReferences(ctx context.Context, out io.Writer, client registryclient.RegistryClient, mounts []mountRequest) error {\n\tfor _, mount := range mounts {\n\t\tnewDigest, err := client.PutManifest(ctx, mount.ref, mount.manifest)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, _ = fmt.Fprintf(out, \"Pushed ref %s with digest: %s\\n\", mount.ref, newDigest)\n\t}\n\treturn nil\n}\n\nfunc mountBlobs(ctx context.Context, client registryclient.RegistryClient, ref reference.Named, blobs []manifestBlob) error {\n\tfor _, blob := range blobs {\n\t\terr := client.MountBlob(ctx, blob.canonical, ref)\n\t\tswitch err.(type) {\n\t\tcase nil:\n\t\tcase registryclient.ErrBlobCreated:\n\t\t\tif blob.os != \"windows\" {\n\t\t\t\treturn fmt.Errorf(\"error mounting %s to %s\", blob.canonical, ref)\n\t\t\t}\n\t\tdefault:\n\t\t\treturn err\n\t\t}\n\t}\n\treturn nil\n}\n","sourceCodeStart":266,"sourceCodeEnd":292,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/manifest/push.go#L266-L292","documentation":"Error \"error mounting %s to %s\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/manifest/push.go:284 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}