'I could not connect to docker daemon from remote in ubuntu 20.04
I want to run docker daemon for remote connection without any TLS verification. So based on this I edit file /lib/systemd/system/docker.service and add two below lines:
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
after that I run:
sudo systemctl daemon-reload
sudo systemctl restart docker.service
when I run curl 127.0.0.1:2375 in my host I get JSON result but when I run curl 192.168.1.222:2375 in another server I couldn't get JSON result from Docker daemon.
I stop ufw service in host.
To find open port in server side I run sudo netstat -lntp | grep dockerd the result is:
tcp6 0 0 :::2375 :::* LISTEN 4452/dockerd
My ubuntu is ubuntu:20.04 and my docker version is 20.10.14.
How can I access to docker daemon from a remote server?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
