{"record":{"id":"280cdb2e0c3f2d44","repo":"docker/cli","slug":"quiet-is-not-yet-supported-with-tree","errorCode":null,"errorMessage":"--quiet is not yet supported with --tree","messagePattern":"--quiet is not yet supported with --tree","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/image/list.go","lineNumber":152,"sourceCode":"\n\timageCtx := formatter.ImageContext{\n\t\tContext: formatter.Context{\n\t\t\tOutput: dockerCLI.Out(),\n\t\t\tFormat: formatter.NewImageFormat(format, options.quiet, options.showDigests),\n\t\t\tTrunc:  !options.noTrunc,\n\t\t},\n\t\tDigest: options.showDigests,\n\t}\n\tif err := formatter.ImageWrite(imageCtx, images); err != nil {\n\t\treturn 0, err\n\t}\n\treturn len(images), nil\n}\n\nfunc shouldUseTree(options imagesOptions) (bool, error) {\n\tif options.quiet {\n\t\tif options.tree {\n\t\t\treturn false, errors.New(\"--quiet is not yet supported with --tree\")\n\t\t}\n\t\treturn false, nil\n\t}\n\tif options.noTrunc {\n\t\tif options.tree {\n\t\t\treturn false, errors.New(\"--no-trunc is not yet supported with --tree\")\n\t\t}\n\t\treturn false, nil\n\t}\n\tif options.showDigests {\n\t\tif options.tree {\n\t\t\treturn false, errors.New(\"--show-digest is not yet supported with --tree\")\n\t\t}\n\t\treturn false, nil\n\t}\n\tif options.format != \"\" {\n\t\tif options.tree {\n\t\t\treturn false, errors.New(\"--format is not yet supported with --tree\")","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/docker/cli/blob/4f84911bfe8811e9b028e4b1fee8e7510be79387/cli/command/image/list.go#L134-L170","documentation":"shouldUseTree() validates flag combinations before entering the experimental `--tree` renderer of `docker images`. The tree view does not yet implement --quiet, so passing both returns this error. It is the first of four sequential incompatibility checks.","triggerScenarios":"`docker images --tree --quiet` (or `-q`).","commonSituations":"A shell alias or CI script that always adds `-q` combined with someone exploring the new `--tree` view.","solutions":["Drop --quiet/-q when using --tree","Drop --tree if you need IDs-only output","Conditionally apply flags rather than always combining them"],"exampleFix":"// before\ndocker images --tree --quiet\n// after\ndocker images --tree","handlingStrategy":"validation","validationCode":"if options.tree && options.quiet {\n    return errors.New(\"--quiet is not supported with --tree\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Do not combine --tree with --quiet/-q","Make shell aliases mutually exclusive between tree and quiet modes","Document that the tree view is experimental and flag-restricted"],"tags":["images","cli","experimental"],"backgroundTag":null,"analyzedSha":"4f84911bfe8811e9b028e4b1fee8e7510be79387","analyzedAt":"2026-08-07T12:15:29.814Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}