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://" behind the "ExecStart=" row.

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

Add text to configuration file


Reload docker deamon

sudo systemctl daemon-reload

Restart docker service

sudo systemctl restart docker