mirror of
https://gitea.com/Lydanne/buildx.git
synced 2026-01-15 18:34:13 +08:00
feedback + updated examples + added links for h3 headings
Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
This commit is contained in:
committed by
Tonis Tiigi
parent
4dac5295a1
commit
23ce21c341
@@ -27,3 +27,32 @@ Commands to work on build records
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
||||
### Build references
|
||||
|
||||
Most `buildx history` subcommands accept a build reference to identify which
|
||||
build to act on. You can specify the build in two ways:
|
||||
|
||||
- By build ID, fetched by `docker buildx history ls`:
|
||||
|
||||
```console
|
||||
docker buildx history export qu2gsuo8ejqrwdfii23xkkckt --output build.dockerbuild
|
||||
```
|
||||
|
||||
- By relative offset, to refer to recent builds:
|
||||
|
||||
```console
|
||||
docker buildx history export ^1 --output build.dockerbuild
|
||||
```
|
||||
|
||||
- `^0` or no reference targets the most recent build
|
||||
- `^1` refers to the build before the most recent
|
||||
- `^2` refers to two builds back, and so on
|
||||
|
||||
Offset references are supported in the following `buildx history` commands:
|
||||
|
||||
- `logs`
|
||||
- `inspect`
|
||||
- `open`
|
||||
- `trace`
|
||||
- `export`
|
||||
- `rm`
|
||||
|
||||
Reference in New Issue
Block a user