MAC OS could not find the docker daemon configuration file

MAC OS (10.13.6) cannot find the Docker daemon configuration file
find the docker installation file with docker info at: / var/lib/docker


Jun.08,2021

this path is actually in the virtual machine, not in the Mac directory. If you want to see it, you need to execute:

screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty

then enter the virtual machine terminal, hit a few more enter, and you can execute the general command. You will see that all your containers and mirrors are already inside.


docker for macos is installed in a virtual machine.

< H1 > Connect to the virtual machine: (directory name: 0 is not fixed, different environments will be different) < / H1 >

screen ~ / Library/Containers/com.docker.docker/Data/vms/0/tty

< H1 > after entering the virtual machine environment: < / H1 >

find /-type f-name "daemon.json"

vi / run/config/docker/daemon.json

Menu