{"id":"b43694285b52c7a7","repo":"docker/cli","slug":"volume-type-must-be-volume-bind-tmpfs-npipe-or","errorCode":null,"errorMessage":"volume type must be volume, bind, tmpfs, npipe, or cluster","messagePattern":"volume type must be volume, bind, tmpfs, npipe, or cluster","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/compose/convert/volume.go","lineNumber":257,"sourceCode":"\tvolume composetypes.ServiceVolumeConfig,\n\tstackVolumes volumes,\n\tnamespace Namespace,\n) (mount.Mount, error) {\n\tswitch volume.Type {\n\tcase \"volume\", \"\":\n\t\treturn handleVolumeToMount(volume, stackVolumes, namespace)\n\tcase \"image\":\n\t\treturn handleImageToMount(volume)\n\tcase \"bind\":\n\t\treturn handleBindToMount(volume)\n\tcase \"tmpfs\":\n\t\treturn handleTmpfsToMount(volume)\n\tcase \"npipe\":\n\t\treturn handleNpipeToMount(volume)\n\tcase \"cluster\":\n\t\treturn handleClusterToMount(volume, stackVolumes, namespace)\n\t}\n\treturn mount.Mount{}, errors.New(\"volume type must be volume, bind, tmpfs, npipe, or cluster\")\n}\n","sourceCodeStart":239,"sourceCodeEnd":259,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/compose/convert/volume.go#L239-L259","documentation":"Error \"volume type must be volume, bind, tmpfs, npipe, or cluster\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/compose/convert/volume.go:257 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}