error
没有启动docker
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
查看是不是磁盘满了
df -h
/dev/mapper/centos-root 100%
failed to create runc console socket: mkdir /tmp/pty405409679: no space left on device: unknown
#查看磁盘占用
cd /
du -h -x --max-depth=1
#找到磁盘占用较大的目录, 继续追踪下去
cd 进入
du -h -x --max-depth=1
#最终在/var/lib/docker/overlay2 中发现了一个 22G 的超级大文件
#因为我的docker 已经不能启动了 使用`rm -rf 超大文件 超大文件.init` 和
#`systemctl restart docker` 重新启动docker
#`docker ps -a` 发现有个容器挂掉了,删掉重启吧 `docker rm 容器名称说`