{"id":"b1b705fccaf23bb6","repo":"docker/cli","slug":"invalid-key-value-pair-format-in-driver-options-b1b705","errorCode":null,"errorMessage":"invalid key value pair format in driver options","messagePattern":"invalid key value pair format in driver options","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"opts/network.go","lineNumber":153,"sourceCode":"\treturn \"\"\n}\n\n// NetworkMode return the network mode for the network option\nfunc (n *NetworkOpt) NetworkMode() string {\n\tnetworkIDOrName := \"default\"\n\tnetOptVal := n.Value()\n\tif len(netOptVal) > 0 {\n\t\tnetworkIDOrName = netOptVal[0].Target\n\t}\n\treturn networkIDOrName\n}\n\nfunc parseDriverOpt(driverOpt string) (string, string, error) {\n\t// TODO(thaJeztah): these options should not be case-insensitive.\n\t// TODO(thaJeztah): should value be converted to lowercase as well, or only the key?\n\tkey, value, ok := strings.Cut(strings.ToLower(driverOpt), \"=\")\n\tif !ok || key == \"\" {\n\t\treturn \"\", \"\", errors.New(\"invalid key value pair format in driver options\")\n\t}\n\tkey = strings.TrimSpace(key)\n\tvalue = strings.TrimSpace(value)\n\treturn key, value, nil\n}\n","sourceCodeStart":135,"sourceCodeEnd":159,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/opts/network.go#L135-L159","documentation":"Error \"invalid key value pair format in driver options\" thrown in docker/cli.","triggerScenarios":"Thrown at opts/network.go:153 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}