AdSense

網頁

2024/7/18

Jenkins Docker build no space left on device error

Jenkins建置專案時出現錯誤no space left on device


例如下面錯誤訊息:

compile: writing output: write $WORK/b1327/_pkg_.a: no space left on device

這問題事實上是Jenkins執行Docker build時的問題,解決方式是SSH到Jenkins並執行docker system prune把用不到的image和container刪除。

# docker system prune
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all dangling images
  - all dangling build cache

Are you sure you want to continue? [y/N] y
Deleted build cache objects:
mdvwu06fryk13fjkxd1smuy5x
...
sw23gpwzlsl5tezlmifepvq4d

Total reclaimed space: 64.2GB


沒有留言:

AdSense