{"id":"0aea3676dcd50318","repo":"docker/cli","slug":"conflicting-parameters-external-and-q-specified","errorCode":null,"errorMessage":"conflicting parameters \"external\" and %q specified for volume %q","messagePattern":"conflicting parameters \"external\" and %q specified for volume %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/compose/loader/loader.go","lineNumber":571,"sourceCode":"\t\t\tif nw.Name != \"\" {\n\t\t\t\treturn nil, fmt.Errorf(\"network %s: network.external.name and network.name conflict; only use network.name\", name)\n\t\t\t}\n\t\t\tif versions.GreaterThanOrEqualTo(version, \"3.5\") {\n\t\t\t\tlogrus.Warnf(\"network %s: network.external.name is deprecated in favor of network.name\", name)\n\t\t\t}\n\t\t\tnw.Name = nw.External.Name\n\t\t\tnw.External.Name = \"\"\n\t\tcase nw.Name == \"\":\n\t\t\tnw.Name = name\n\t\t}\n\t\tnw.Extras = loadExtras(name, source)\n\t\tnetworks[name] = nw\n\t}\n\treturn networks, nil\n}\n\nfunc externalVolumeError(volume, key string) error {\n\treturn fmt.Errorf(`conflicting parameters \"external\" and %q specified for volume %q`, key, volume)\n}\n\n// LoadVolumes produces a VolumeConfig map from a compose file Dict\n// the source Dict is not validated if directly used. Use Load() to enable validation\nfunc LoadVolumes(source map[string]any, version string) (map[string]types.VolumeConfig, error) {\n\tvolumes := make(map[string]types.VolumeConfig)\n\tif err := Transform(source, &volumes); err != nil {\n\t\treturn volumes, err\n\t}\n\n\tfor name, volume := range volumes {\n\t\tif !volume.External.External {\n\t\t\tcontinue\n\t\t}\n\t\tswitch {\n\t\tcase volume.Driver != \"\":\n\t\t\treturn nil, externalVolumeError(name, \"driver\")\n\t\tcase len(volume.DriverOpts) > 0:","sourceCodeStart":553,"sourceCodeEnd":589,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/compose/loader/loader.go#L553-L589","documentation":"Error \"conflicting parameters \"external\" and %q specified for volume %q\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/compose/loader/loader.go:571 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}