原因:/var/lib/docker/overlay2文件占用太大,导致磁盘爆满

    1、关闭docker

    1. systemctl stop docker

    2、迁移数据

    1. rsync -avz /var/lib/docker /run/media/root/wd/dockerlib
    2. sudo mkdir -p /etc/systemd/system/docker.service.d/

    3、/etc/docker/daemon.json 添加一下配置

    1. "graph": "/boot/dockerlib/docker"

    4、重复docker服务

    1. systemctl daemon-reload
    2. systemctl restart docker
    3. systemctl enable docker

    5、检查docker是否运行正常,docker容器、镜像是否正常

    1. docker info
    2. docker ps -a
    3. docker images