vim /lib/systemd/system/docker.service [Service] ExecStart= ExecStart=/usr/bin/dockerd --graph=/home/modules/docker/lib/docker
5、重启docker
systemctl daemon-reload systemctl restart docker systemctl enable docker
6、确认Docker Root Dir修改是否已经生效
docker info ... Docker Root Dir: /home/modules/docker/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/
7、再确认之前的镜像是否还在
docker iamges
8、查看磁盘空间
df -h
以上就是docker内存不足怎么解决的详细内容,更多请关注其它相关文章!