[Docker] Docker build error: No left space in device
阿新 • • 發佈:2018-12-17
RT
This happens when you run docker build
many times in Linux/ubuntu system, then your disk/storage has no other space for your building.
Check storage usage. You can run:
df -h
to see the storage/inodes used info. You will see something like:Filesystem Size Used Avail Use% Mounted on
- Remove docker unused files.
Through cmd:
cd /
du -chs *
step by step, you can find out the most space used folder.
And finally you find out/var/lib/docker
folder occupies the most space.
For me, this is my occasion. ;)
Then I run cmd:rm * -rf
in this folder. Don’t need worry. - PS: AUFS/Laysers/Images…. if you wanna know what these folders/words are. Check the docker.io official site please.