You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/buildx_du.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Disk usage
14
14
|[`--builder`](#builder)|`string`|| Override the configured builder instance |
15
15
|`-D`, `--debug`|`bool`|| Enable debug logging |
16
16
|`--filter`|`filter`|| Provide filter values |
17
+
|[`--format`](#format)|`string`|| Format the output in verbose mode |
17
18
|[`--verbose`](#verbose)|`bool`|| Provide a more verbose output |
18
19
19
20
@@ -117,3 +118,41 @@ uj802yxtvkcjysnjb4kgwvn2v true 11.68MB 45 hours ago
117
118
Reclaimable: 2.627GB
118
119
Total: 2.627GB
119
120
```
121
+
122
+
### <aname="format"></a> Format the output in verbose mode (--format)
123
+
124
+
The formatting options (`--format`) can be used with [`--verbose` flag](#verbose)
125
+
to print the output in `raw` (default) or `json`:
126
+
127
+
```console
128
+
$ docker buildx du --verbose --format=json
129
+
[
130
+
...
131
+
{
132
+
"id": "4m8061kctvjyh9qleus8rgpgx",
133
+
"mutable": true,
134
+
"inUse": false,
135
+
"size": 1723305984,
136
+
"createdAt": "2025-06-19T21:00:41.53563755Z",
137
+
"lastUsedAt": "2025-08-11T09:20:22.598927091Z",
138
+
"usageCount": 25,
139
+
"parents": null,
140
+
"description": "cached mount /root/.cache/go-build from exec /bin/sh -c set -ex\n go test -v -coverprofile=/tmp/coverage.txt -covermode=atomic -race ./...\n go tool cover -func=/tmp/coverage.txt\n with id \"//root/.cache/go-build\"",
0 commit comments