1
1
# docker buildx history export
2
2
3
3
<!-- -MARKER_GEN_START-->
4
- Export a build into Docker Desktop bundle
4
+ Export build records into Docker Desktop bundle
5
5
6
6
### Options
7
7
@@ -23,59 +23,57 @@ Desktop or shared across environments.
23
23
24
24
## Examples
25
25
26
- ### <a name =" output " ></a > Export a single build to a custom file (--output)
26
+ ### <a name =" all " ></a > Export all build records to a file (--all)
27
+
28
+ Use the ` --all ` flag and redirect the output:
27
29
28
30
``` console
29
- docker buildx history export qu2gsuo8ejqrwdfii23xkkckt --output mybuild .dockerbuild
31
+ docker buildx history export --all > all-builds .dockerbuild
30
32
```
31
33
32
- You can find build IDs by running :
34
+ Or use the ` --output ` flag :
33
35
34
36
``` console
35
- docker buildx history ls
37
+ docker buildx history export --all -o all-builds.dockerbuild
36
38
```
37
39
38
- ### <a name =" o " ></a > Export multiple builds to individual ` .dockerbuild ` files (-o)
39
-
40
- To export two builds to separate files:
40
+ ### <a name =" builder " ></a > Use a specific builder instance (--builder)
41
41
42
42
``` console
43
- # Using build IDs
44
- docker buildx history export qu2gsuo8ejqrwdfii23xkkckt qsiifiuf1ad9pa9qvppc0z1l3 -o multi.dockerbuild
45
-
46
- # Or using relative offsets
47
- docker buildx history export ^1 ^2 -o multi.dockerbuild
43
+ docker buildx history export --builder builder0 ^1 -o builder0-build.dockerbuild
48
44
```
49
45
50
- Or use shell redirection:
46
+ ### < a name = " debug " ></ a > Enable debug logging (--debug)
51
47
52
48
``` console
53
- docker buildx history export ^1 > mybuild.dockerbuild
54
- docker buildx history export ^2 > backend-build.dockerbuild
49
+ docker buildx history export --debug qu2gsuo8ejqrwdfii23xkkckt -o debug-build.dockerbuild
55
50
```
56
51
57
- ### <a name =" all " ></a > Export all build records to a file (--all)
58
-
59
- Use the ` --all ` flag and redirect the output:
52
+ ### <a name =" output " ></a > Export a single build to a custom file (--output)
60
53
61
54
``` console
62
- docker buildx history export --all > all-builds .dockerbuild
55
+ docker buildx history export qu2gsuo8ejqrwdfii23xkkckt --output mybuild .dockerbuild
63
56
```
64
57
65
- Or use the ` --output ` flag :
58
+ You can find build IDs by running :
66
59
67
60
``` console
68
- docker buildx history export --all -o all-builds.dockerbuild
61
+ docker buildx history ls
69
62
```
70
63
71
- ### < a name = " builder " ></ a > Use a specific builder instance (--builder)
64
+ To export two builds to separate files:
72
65
73
66
``` console
74
- docker buildx history export --builder builder0 ^1 -o builder0-build.dockerbuild
67
+ # Using build IDs
68
+ docker buildx history export qu2gsuo8ejqrwdfii23xkkckt qsiifiuf1ad9pa9qvppc0z1l3 -o multi.dockerbuild
69
+
70
+ # Or using relative offsets
71
+ docker buildx history export ^1 ^2 -o multi.dockerbuild
75
72
```
76
73
77
- ### < a name = " debug " ></ a > Enable debug logging (--debug)
74
+ Or use shell redirection:
78
75
79
76
``` console
80
- docker buildx history export --debug qu2gsuo8ejqrwdfii23xkkckt -o debug-build.dockerbuild
81
- ```
77
+ docker buildx history export ^1 > mybuild.dockerbuild
78
+ docker buildx history export ^2 > backend-build.dockerbuild
79
+ ```
0 commit comments