This website uses cookies in order to provide better service to our customers. If you agree to our use of cookies, please click the "Accept" button.
For more information on our cookie policy, please see the "Terms"
logo image

Docker buildしようとしたら、no space left on deviceと表示された時の対策

Icon representing a data.
2021-12-08
Icon show updated_at
2021-12-08
2
Twitter icon.
Mac
Docker

Precondition

docker を常日頃から使用してる

Fact

docker buildしようとした時

Error log or Error Massage

failed to register layer: Error processing tar file(exit status 1): 
write /usr/local/lib/python3.9/lib-dynload/_blake2.cpython-39-x86_64-linux-gnu.so: 
no space left on device

Cause

自分のdeviceにメモリが不足していたため

Method

docker ps -a したら大量のコンテナがあったので、docker system pruneした
Total reclaimed space: 18.63GBと表示された。
再度docker buildしたら問題なく走った

Remarks

定期的に不要なdocker imageを消そうと思った

レベル5のエンジニアです
Area to place ads.
Area to place ads.
Comments
There are no comments on this article yet.

Environment Library tools

Mac
Docker
レベル5のエンジニアです