Macbook 升级 docker desktop 后原来的镜像和容器丢失。解决办法:
查看docker image location: /Users/kyle/Library/Containers/com.docker.docker/Data/vms/0/data
原来的 docker image 在:/Users/kyle/Library/Containers/com.docker.docker/Data/vms/0/
将/Users/kyle/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw 移动到 /Users/kyle/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
Open ‘Preferences -> Resources -> Disk image location’ of docker desktop, change it to another path and back again, click Apply & Restart. The new suffix will become ‘/DockerDesktop’.
Create the corresponding ‘/DockerDesktop’ folder under ‘…/vms/0’
http://xhyumiracle.com/docker-images-disappear-after-upgrade/
https://github.com/docker/for-mac/issues/1175
https://yeasy.gitbook.io/docker_practice/appendix/faq
https://stackoverflow.com/questions/65155259/lost-all-docker-containers-and-images-after-upgrading-docker