{"id":"8fec5716e68e2978","repo":"docker/cli","slug":"show-digest-is-not-yet-supported-with-tree","errorCode":null,"errorMessage":"--show-digest is not yet supported with --tree","messagePattern":"--show-digest is not yet supported with --tree","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/image/list.go","lineNumber":164,"sourceCode":"\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\")\n\t\t}\n\t\treturn false, nil\n\t}\n\treturn true, nil\n}\n\n// isDangling is a copy of [formatter.isDangling].\nfunc isDangling(img image.Summary) bool {\n\tif len(img.RepoTags) == 0 {\n\t\treturn true\n\t}\n\treturn len(img.RepoTags) == 1 && img.RepoTags[0] == \"<none>:<none>\" && len(img.RepoDigests) == 1 && img.RepoDigests[0] == \"<none>@<none>\"","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/image/list.go#L146-L182","documentation":"--show-digest adds a DIGEST column to the tabular `docker image ls` output; the tree view has its own multi-platform layout and does not implement a digest column, so shouldUseTree rejects combining the flags with a 'not yet supported' error rather than dropping the digest silently. (Note the error text says --show-digest while the actual flag is --digests in some CLI versions.)","triggerScenarios":"Running `docker image ls --tree --digests`; shouldUseTree returns the error whenever both options.showDigests and options.tree are set.","commonSituations":"Users verifying pushed image digests while trying the tree view; CI scripts using --digests for content-addressed pinning combined with a --tree alias; comparing multi-platform manifests where both digest and tree info seem natural to want together.","solutions":["Use the tabular view for digests: `docker image ls --digests`.","Use `docker image ls --tree` alone; per-platform digests are part of what the tree displays for multi-platform images.","Fetch a specific digest with `docker image inspect --format '{{.RepoDigests}}' <image>`."],"exampleFix":"# before\ndocker image ls --tree --digests\n# after\ndocker image ls --digests","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":["docker-cli","images","tree-view","digests","flag-conflict"],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}