Where is /var/lib/docker on Mac/OS X

匿名 (未验证) 提交于 2019-12-03 01:25:01

问题:

/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)



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!