{"id":"44e979a16b664513","repo":"docker/cli","slug":"undefined-volume-q","errorCode":null,"errorMessage":"undefined volume %q","messagePattern":"undefined volume %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/compose/convert/volume.go","lineNumber":63,"sourceCode":"\t\treturn mount.Mount{}, errors.New(\"images options are incompatible with type volume\")\n\t}\n\tif volume.Tmpfs != nil {\n\t\treturn mount.Mount{}, errors.New(\"tmpfs options are incompatible with type volume\")\n\t}\n\tif volume.Bind != nil {\n\t\treturn mount.Mount{}, errors.New(\"bind options are incompatible with type volume\")\n\t}\n\tif volume.Cluster != nil {\n\t\treturn mount.Mount{}, errors.New(\"cluster options are incompatible with type volume\")\n\t}\n\t// Anonymous volumes\n\tif volume.Source == \"\" {\n\t\treturn result, nil\n\t}\n\n\tstackVolume, exists := stackVolumes[volume.Source]\n\tif !exists {\n\t\treturn mount.Mount{}, fmt.Errorf(\"undefined volume %q\", volume.Source)\n\t}\n\n\tresult.Source = namespace.Scope(volume.Source)\n\tresult.VolumeOptions = &mount.VolumeOptions{}\n\n\tif volume.Volume != nil {\n\t\tresult.VolumeOptions.NoCopy = volume.Volume.NoCopy\n\t\tresult.VolumeOptions.Subpath = volume.Volume.Subpath\n\t}\n\n\tif stackVolume.Name != \"\" {\n\t\tresult.Source = stackVolume.Name\n\t}\n\n\t// External named volumes\n\tif stackVolume.External.External {\n\t\treturn result, nil\n\t}","sourceCodeStart":45,"sourceCodeEnd":81,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/compose/convert/volume.go#L45-L81","documentation":"Error \"undefined volume %q\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/compose/convert/volume.go:63 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}