Docker Enable Remote access to Docker API on Linux


Example

Edit /etc/init/docker.conf and update the DOCKER_OPTS variable to the following:

DOCKER_OPTS='-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock'

Restart Docker deamon

service docker restart

Verify if Remote API is working

curl -X GET http://localhost:4243/images/json