Docker Community Forums

Share and learn in the Docker community.

Docker client does not get response from server when server listens on tcp://0.0.0.0:2376

Ubuntu 18.04

I have the following configuration to start docker daemon, and I can run the service. However I can’t run any docker command, e.g., docker info, docker version, etc., that is, it just hangs.

$ cat docker.root.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376

$ systemctl start docker
Jun 17 17:12:56 ip-10-23-9-76 dockerd[4958]: time=“2019-06-17T17:12:56.476994996Z” level=info msg=“API listen on [::]:2376”

I added -H fd:// and was able to at least get this info

$ docker version
Client:
Version: 18.09.6
API version: 1.39
Go version: go1.10.8
Git commit: 481bc77
Built: Sat May 4 02:35:57 2019
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.6
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: 481bc77
Built: Sat May 4 01:59:36 2019
OS/Arch: linux/amd64
Experimental: false

No one? This is supposed to work right?