浏览文件
buildkit.yaml
24 行 · 695 B历史下载| 1 | # A template to use BuildKit |
| 2 | # $ limactl start ./buildkit.yaml |
| 3 | |
| 4 | # To run `buildkit` on the host (assumes buildctl is installed): |
| 5 | # $ export BUILDKIT_HOST=$(limactl list buildkit --format 'unix://{{.Dir}}/sock/buildkitd.sock') |
| 6 | # $ buildctl debug workers |
| 7 | message: | |
| 8 | To run `buildkit` on the host (assumes buildctl is installed), run the following commands: |
| 9 | ------- |
| 10 | export BUILDKIT_HOST="unix://{{.Dir}}/sock/buildkitd.sock" |
| 11 | buildctl debug workers |
| 12 | ------- |
| 13 | |
| 14 | minimumLimaVersion: 2.0.0 |
| 15 | |
| 16 | base: template:_images/ubuntu-lts |
| 17 | |
| 18 | containerd: |
| 19 | system: false |
| 20 | user: true |
| 21 | |
| 22 | portForwards: |
| 23 | - guestSocket: "/run/user/{{.UID}}/buildkit-default/buildkitd.sock" |
| 24 | hostSocket: "{{.Dir}}/sock/buildkitd.sock" |

