docker: failed to register layer ... no space left on device

Docker 拉取镜像的时候报错

docker: failed to register layer: Error processing tar file(exit status 1): mkdir /usr/lib/x86_64-linux-gnu/perl-base/unicore/lib/NFKCQC: no space left on device.

Github 上也有人指出该错误

原因是 inodes 资源耗尽 , 清理一下即可

df -i

sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n

上述命令参考这篇文章
用这个 docker 清理工具

curl -s https://raw.githubusercontent.com/ZZROTDesign/docker-clean/v2.0.4/docker-clean |
sudo tee /usr/local/bin/docker-clean > /dev/null && \
sudo chmod +x /usr/local/bin/docker-clean
docker-clean

你可能感兴趣的:(docker: failed to register layer ... no space left on device)