可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
/var/lib/docker on my Mac after installing docker for Mac.
With docker info I get
Containers: 5 ... Server Version: 1.12.0-rc4 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 339 Dirperm1 Supported: true ... Name: moby ID: LUOU:5UHI:JFNI:OQFT:BLKR:YJIC:HHE5:W4LP:YHVP:TT3V:4CB2:6TUS Docker Root Dir: /var/lib/docker Debug Mode (client): false ....
/var/lib/docker on my host.
I have checked /Users/myuser/Library/Containers/com.docker.docker/
回答1:
See this answer
When using Docker for Mac Application, it appears that the containers are stored within the VM located at:
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
回答2:
As mentioned in the above answers, you will find it in:
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Once you get the tty running you can navigate to /var/lib/docker
回答3:
This path comes from Docker Host (not from MacOS) fefore "Docker for Mac Application" times, where where was a VirtualBox VM "default" and inside this VM mentioned path exists (for sure), now in "Docker for Mac Application" times there is a Docker.qcow2 image, which is qemu base vm. To jump inside this VM @mik-jagger way is ok (but there are few more)