Skip to content

Instantly share code, notes, and snippets.

@vcarmen
Created April 24, 2019 23:14
Show Gist options
  • Save vcarmen/30285e091a4aab846f67719e526e93f9 to your computer and use it in GitHub Desktop.
Save vcarmen/30285e091a4aab846f67719e526e93f9 to your computer and use it in GitHub Desktop.
enable_docker_rest_api
https://medium.com/@ssmak/how-to-enable-docker-remote-api-on-docker-host-7b73bd3278c6
ubuntu@awt02-devops:~$ sudo vi /lib/systemd/system/docker.service
#add this -H=tcp://0.0.0.0:2375 to the next line
ExecStart=/usr/bin/dockerd -H=fd:// -H=tcp://0.0.0.0:2375
ubuntu@awt02-devops:~$ sudo systemctl daemon-reload
ubuntu@awt02-devops:~$ sudo service docker restart
ubuntu@awt02-devops:~$ curl http://localhost:2375/images/json
[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment