With Docker Beta on Windows, I can go to http://10.0.75.2:2375/containers/json and get all containers I have.
I grabbed the VM IP on a Mac, and wasn’t able to talk to Docker API over http. Is this possible anyway? Any help appreciated.
Share and learn in the Docker community.
With Docker Beta on Windows, I can go to http://10.0.75.2:2375/containers/json and get all containers I have.
I grabbed the VM IP on a Mac, and wasn’t able to talk to Docker API over http. Is this possible anyway? Any help appreciated.
If you can step a level lower than Docker, there’s LXC/LXD
Hi, in order to use the Docker API using HTTP, you must use socat ($ brew install socat) to expose the socket through HTTP, then
socat TCP-LISTEN:2375,reuseaddr,fork,bind=localhost UNIX-CONNECT:/var/run/docker.sock &
With this, you will be able to reach the docker API through HTTP