I am trying to set up Docker on an EC2 server, and I am trying to start it up with the -H flag for the Hosts.
What I have:
/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --default-ulimit nofile=32768:65536
What I want:
/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 --containerd=/run/containerd/containerd.sock --default-ulimit nofile=32768:65536
When I ran the dockerd command above, I got:
failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd
So, I have put the configuration under: /etc/docker/daemon.json according to this link:
I added:
{
"hosts": ["fd://", "tcp://0.0.0.0:2376"]
}
Then, when I run: systemctl start docker, the daemon doesn't come up.
It seems unnecessarily complicated, but can someone please help me out here? I am a little rusty. Thanks