docker pull 失败:ERROR: failed to register layer: write /var/lib/docker/image/devicemapper/layerdb/tmp/write-set-029245630/diff: no space left on device

问题描述:

ERROR: failed to register layer: write /var/lib/docker/image/devicemapper/layerdb/tmp/write-set-029245630/diff: no space left on device

空间不足了

解决方案:
思路:把images和Container存放到其他空间足的目录下,
步骤:

  1. 先停掉docker服务
sudo service docker stop
  1. 更改配置
sudo vim /etc/docker/daemon.json

在里面加一行:

"graph": "/path/you/wanna/save/docker"

{
	"graph": "/bi/docker/imagesAndContainers"
}
  1. 重启docker服务
sudo service docker start
posted @ 2020-11-25 10:53  镇魂帆-张  阅读(1826)  评论(0编辑  收藏  举报