Now to get to the root directory /var/lib/docker we must access the docker virtual machine being used on our mac. When you navigate to ~/Library/Containers you will see the folder name Docker instead. This directory is easy to get to from the terminal, but if you try to get there via the finder you might notice that does not appear visually under that directory name. On a mac our docker files are located inside of a virtual machine which is located in our user library directory: ~/Library/Containers// Here is a little background information on the docker directory Try option 1 first, if it does not work try option 2 There are two primary ways to get to this directory. overlay - when the docker engine is running in swarm mode, containers attached to an overlay network can communicate with other containers attached to the same network across multiple container hosts. You see that command will tell you that the root directory is located at /var/lib/docker, which on a mac is a non-existent directory. Requires: When this mode is used in a virtualization scenario (container host is a VM) MAC address spoofing is required. Usually on most systems, you can see where the images and containers are located by running the command docker info but no, that does not work on a mac. Finding the location of docker images is a chore on a mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |