原因:/var/lib/docker/overlay2
文件占用太大,导致磁盘爆满
1、关闭docker
systemctl stop docker
2、迁移数据
rsync -avz /var/lib/docker /run/media/root/wd/dockerlib
sudo mkdir -p /etc/systemd/system/docker.service.d/
3、/etc/docker/daemon.json
添加一下配置
"graph": "/boot/dockerlib/docker"
4、重复docker服务
systemctl daemon-reload
systemctl restart docker
systemctl enable docker
5、检查docker是否运行正常,docker容器、镜像是否正常
docker info
docker ps -a
docker images