如何使用设备映射器将docker容器移动到另一台计算机而不使用docker命令

all*_*mon 6 docker

这是情况

重启后,由于磁盘空间不足,docker无法重启.由于很多错误的决定,我们现在只留下一份副本/var/lib/docker (因此我们无法运行docker我们想要移动到运行相同操作系统/版本的docker的其他机器(1.8.3)

当我们试图天真地取代/var/lib/docker旧的时,我们得到了

Feb 20 08:06:33 example.com systemd[1]: Starting Docker Application Container Engine...
Feb 20 08:06:33 example.com docker[2164]: time="2016-02-20T08:06:33.111285635+01:00" level=error msg="[graphdriver] prior storage driver \"devicemapper\" failed: Base Device UUID verification failed. Possibly using a different thin pool then last invocation:exit status 2"
Feb 20 08:06:33 example.com docker[2164]: time="2016-02-20T08:06:33.111382676+01:00" level=fatal msg="Error starting daemon: error initializing graphdriver: Base Device UUID verification failed. Possibly using a different thin pool then last invocation:exit status 2"
Feb 20 08:06:33 example.com systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Run Code Online (Sandbox Code Playgroud)

我在docker https://github.com/docker/docker/issues/15721上一直在阅读这个问题,但似乎没有用.

是否有一个已知的程序来移出东西?或至少挂载磁盘映像以获取数据?

小智 1

解决方法是 - rm -rf /var/lib/docker 并重新启动 docker(有时需要重新启动主机)

https://github.com/docker/docker/issues/23089