Skip to main content

Expose docker host API to connect over TCP

Edit file on docker host

Edit this file /lib/systemd/system/docker.service with root permissions and add the string of " -H=tcp://0.0.0.0:2375" behind the "ExecStart=" row.

sudo nano /lib/systemd/system/docker.service

Add text to configuration file

image.png

Reload docker deamon

sudo systemctl daemon-reload

Restart docker service

sudo systemctl restart docker