MacOS Docker enables remote access

The Docker process under Linux monitors port 2375 and accepts remote access. But under MacOS, it cannot be used. Need to do the following two-step configuration:

Download socat

brew install socat

Open remote TCP port 2375 to access Docker

socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock &

To complete the two-step configuration as above, you can tcp://[host IP address]:2375access the Docker running MacOS on the way.

Guess you like

Origin blog.csdn.net/qq_27198345/article/details/113553536