mirror of
https://gitea.com/Lydanne/buildx.git
synced 2026-01-16 19:04:16 +08:00
Add descriptions and examples for buildx history commands
Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
This commit is contained in:
committed by
Tonis Tiigi
parent
9a48aca461
commit
4dac5295a1
@@ -14,3 +14,34 @@ Print the logs of a build
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
||||
## Description
|
||||
|
||||
Print the logs for a completed build. The output appears in the same format as `--progress=plain`, showing the full logs for each step without multiplexing.
|
||||
|
||||
By default, this shows logs for the most recent build on the current builder.
|
||||
|
||||
## Examples
|
||||
|
||||
### Print logs for the most recent build
|
||||
|
||||
```console
|
||||
docker buildx history logs
|
||||
```
|
||||
|
||||
### Print logs for a specific build
|
||||
|
||||
```console
|
||||
docker buildx history logs mybuild
|
||||
```
|
||||
|
||||
### Print logs in JSON format
|
||||
|
||||
```console
|
||||
docker buildx history logs mybuild --progress rawjson
|
||||
```
|
||||
|
||||
### Print logs in TTY format
|
||||
|
||||
```console
|
||||
docker buildx history logs mybuild --progress tty
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user