Docker – API over TCP

All steps are relevant for distributions with systemd (tested on CentOS 7 and Ubuntu 18.04)

We look at the Docker launch command:

grep "ExecStart" /usr/lib/systemd/system/docker.service

Ubuntu 18.04 has a different path, "/lib/systemd/system/docker.service"

 

We get something similar:

ExecStart=/usr/bin/dockerd

Now create the "override.conf" file, just enter:

systemctl edit docker

We insert the following there:

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375

Continue reading " Docker – API over TCP"