buildx/docs/reference/buildx_history_logs.md
sarahsanders-docker 4dac5295a1
Add descriptions and examples for buildx history commands
Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
2025-05-05 14:32:03 -07:00

48 lines
1.2 KiB
Markdown

# docker buildx history logs
<!---MARKER_GEN_START-->
Print the logs of a build
### Options
| Name | Type | Default | Description |
|:----------------|:---------|:--------|:--------------------------------------------------|
| `--builder` | `string` | | Override the configured builder instance |
| `-D`, `--debug` | `bool` | | Enable debug logging |
| `--progress` | `string` | `plain` | Set type of progress output (plain, rawjson, tty) |
<!---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
```