找回停掉docker的文件

时间:2023-03-09 23:17:25
找回停掉docker的文件
如果容器还能重启,就restart, 如果状态是DEAD的话,
Error response from daemon: Container is marked for removal and cannot be started. 
Error response from daemon: Cannot restart container eaa7b3b95d50: Container is marked for removal and cannot be started.

docker inspect dockerid | grep overlay

然后在这些目录下, 找回当时文件, 重点关注 那个UpperDir, 可能没有权限 需要sudo

https://www.atjiang.com/manage-data-in-docker-containers/