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存放到其他空间足的目录下,
步骤:
- 先停掉docker服务
sudo service docker stop
- 更改配置
sudo vim /etc/docker/daemon.json
在里面加一行:
"graph": "/path/you/wanna/save/docker"
{
"graph": "/bi/docker/imagesAndContainers"
}
- 重启docker服务
sudo service docker start