See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file in/etc/docker
:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
-
Add
/etc/systemd/system/docker.service.d/override.conf
[Service] ExecStart= ExecStart=/usr/bin/dockerd
-
Reload the systemd daemon:
systemctl daemon-reload
-
Restart docker:
systemctl restart docker.service
Server side seems OK but I cant connect to the daemon from other machine:
I can get image list from browser with HTTP but I cannot use Docker Client (CLI) to access it
Can I force my Docker Client to NOT using HTTPS?
the docker environment is inside a private network so it maybe safe to not using SSL/HTTPS