I'm currently running Ubuntu 20.04 and trying to expose remote docker access via tcp with the systemd
approach, as listed in the official docker guide.
# config in docker.service.d
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375
However I noticed that it only works when IP address is listed as 0.0.0.0
instead of 127.0.0.1
.
May I know what could have resulted in it working only with 0.0.0.0:2375
and is there any significant difference using either loopback address?