@@ -9,10 +9,10 @@ List build records
99| :----------------| :--------------| :--------| :---------------------------------------------|
1010| ` --builder ` | ` string ` | | Override the configured builder instance |
1111| ` -D ` , ` --debug ` | ` bool ` | | Enable debug logging |
12- | ` --filter ` | ` stringArray ` | | Provide filter values (e.g., ` status=error ` ) |
13- | ` --format ` | ` string ` | ` table ` | Format the output |
14- | ` --local ` | ` bool ` | | List records for current repository only |
15- | ` --no-trunc ` | ` bool ` | | Don't truncate output |
12+ | [ ` --filter ` ] ( #filter ) | ` stringArray ` | | Provide filter values (e.g., ` status=error ` ) |
13+ | [ ` --format ` ] ( #format ) | ` string ` | ` table ` | Format the output |
14+ | [ ` --local ` ] ( #local ) | ` bool ` | | List records for current repository only |
15+ | [ ` --no-trunc ` ] ( #no-trunc ) | ` bool ` | | Don't truncate output |
1616
1717
1818<!-- -MARKER_GEN_END-->
@@ -27,7 +27,7 @@ results using flags.
2727
2828## Examples
2929
30- ### < a name = " list-build-records-current " ></ a > List all build records for the current builder
30+ ### List all build records for the current builder
3131
3232``` console
3333$ docker buildx history ls
@@ -37,7 +37,7 @@ qsiifiuf1ad9pa9qvppc0z1l3 .dev/2850 Completed 3 days ago 1.3s
3737g9808bwrjrlkbhdamxklx660b .dev/3120 Completed 5 days ago 2.1s
3838```
3939
40- ### <a name =" list-failed-builds " ></a > List only failed builds
40+ ### <a name =" filter " ></a > List failed builds (--filter)
4141
4242``` console
4343docker buildx history ls --filter status=error
@@ -56,19 +56,21 @@ You can combine multiple filters by repeating the `--filter` flag:
5656docker buildx history ls --filter status=error --filter duration>30s
5757```
5858
59- ### <a name =" list-builds-current-project " ></a > List builds from the current project
59+ ### <a name =" local " ></a > List builds from the current project (--local)
6060
6161``` console
6262docker buildx history ls --local
6363```
6464
65- ### <a name =" display-full-output " ></a > Display full output without truncation
65+ ### <a name =" no-trunc " ></a > Display full output without truncation (--no-trunc)
6666
6767``` console
6868docker buildx history ls --no-trunc
6969```
7070
71- ### <a name =" list-as-json " ></a > Format output as JSON
71+ ### <a name =" format " ></a > Format output (--format)
72+
73+ ** JSON output**
7274
7375``` console
7476$ docker buildx history ls --format json
@@ -90,7 +92,7 @@ $ docker buildx history ls --format json
9092]
9193```
9294
93- ### < a name = " list-go-template " ></ a > Use a Go template to print name and durations
95+ ** Go template output **
9496
9597``` console
9698$ docker buildx history ls --format ' {{.Name}} - {{.Duration}}'
0 commit comments