home目录爆了
查找原因是docker 占用太多了,但是清了,以后肯定也会涨回来,找IT扩容只能扩/data , 那就迁移docker到扩容下面把
systemctl stop docker
mkdir -p /data/docker/lib
rsync -avz /var/lib/docker /data/docker/lib/
sudo mkdir -p /etc/systemd/system/docker.service.d/ sudo vi /etc/systemd/system/docker.service.d/devicemapper.conf
[Service] ExecStart= ExecStart=/usr/bin/dockerd --graph=/data/docker/lib/docker
systemctl daemon-reload systemctl restart docker systemctl enable docker
docker info
... Docker Root Dir: /home/docker/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ ...
linlf@dacent:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE AAA/AAA v2 7331b8651bcc 27 hours ago 3.85GB BBB/BBB v1 da4a80dd8424 28 hours ago 3.47GB
rm -rf /var/lib/docker/*