Skip to content

Commit ce3592e

Browse files
authored
Merge pull request #3390 from crazy-max/docs-du-fixes
docs: fixes for du command
2 parents 67218be + ce07ae0 commit ce3592e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/reference/buildx_du.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ Valid placeholders for the Go template are:
8282
* `.Type`
8383

8484
When using the `--format` option, the `du` command will either output the data
85-
exactly as the template declares.
85+
exactly as the template declares or, when using the `table` directive, includes
86+
column headers as well.
8687

8788
The `pretty` format is useful for inspecting the disk usage records in more
8889
detail. It shows the mutable and shared states more clearly, as well as
@@ -128,10 +129,15 @@ The following example uses a `table` template and outputs the `ID` and
128129
`Description`:
129130

130131
```console
131-
$ docker buildx du --format "table {{.ID}} {{.Descirption}}"
132-
lu76wm07lk5u7fe9nul93o95o [integration-tests 1/1] COPY . .
133-
v6zmkcmgujv34vnys9eszttnv [dev 1/1] COPY --link . .
134-
nj4fwb6qxznswmij3fg30sns2 mount / from exec /bin/sh -c rpm-init $DISTRO_NAME
132+
$ docker buildx du --format "table {{.ID}} {{.Description}}"
133+
ID DESCRIPTION
134+
03bbhchaib8cygqs68um6hfnl [binaries-linux 2/5] LINK COPY --link --from=binfmt-filter /out/ /
135+
2h8un0tyg57oj64xvbas6mzea [cni-plugins-export 2/4] LINK COPY --link --from=cni-plugins /opt/cni/bin/loopback /buildkit-cni-loopback
136+
evckox33t07ob9dmollhn4h4j [cni-plugins-export 3/4] LINK COPY --link --from=cni-plugins /opt/cni/bin/host-local /buildkit-cni-host-local
137+
jlxzwcw6xaomxj8irerow9bhb [binaries-linux 4/5] LINK COPY --link --from=buildctl /usr/bin/buildctl /
138+
ov2oetgebkhpsw39rv1sbh5w1 [buildkit-linux 1/1] LINK COPY --link --from=binaries / /usr/bin/
139+
ruoczhyq25n5v9ld7n231zalx [binaries-linux 3/5] LINK COPY --link --from=cni-plugins-export-squashed / /
140+
ax7cov6kizxi9ufvcwsef4occ* local source for context
135141
```
136142

137143
JSON output is also supported and will print as newline delimited JSON:
@@ -209,7 +215,7 @@ Total: 133.5GB
209215
Use the `--builder` flag to inspect the disk usage of a particular builder.
210216

211217
```console
212-
$ docker buildx du --builder youthful_shtern
218+
$ docker buildx du --builder mybuilder
213219
ID RECLAIMABLE SIZE LAST ACCESSED
214220
g41agepgdczekxg2mtw0dujsv* true 1.312GB 47 hours ago
215221
e6ycrsa0bn9akigqgzu0sc6kr true 318MB 47 hours ago

0 commit comments

Comments
 (0)