Lee Theobald
Lee Theobald

Reputation: 8587

Starting Docker On Debian 8: No Sockets Found

I've just tried to install Docker via the instructions from their site. After starting the service a call to docker version reports the daemon isn't running. Doing a ps -ef | grep docker and I can see that Docker was run using /usr/bin/docker daemon -H fd://. If I and try to run that manually, I get FATA[0000] No sockets found.

There's an issue about this in Fedora and it recommended removing the -H fd:// option. But I can't spot that anywhere (not in /etc/init.d/docker, /etc/default/docker, etc).

Can anyone help me get past this issue please?

Upvotes: 2

Views: 799

Answers (1)

Lee Theobald
Lee Theobald

Reputation: 8587

Right, found it. Following the advice from the Docker docs, I ran:

sudo systemctl status docker | grep Loaded

That showed me the defaults came from /lib/systemd/system/docker.service. After that I copied the contents of that file to /etc/system.d/system/docker.service, overriding the bits I wanted (and removing the items that remained the same). After that, I ran sudo systemctl daemon-reload and now the Docker service is using the right command.

Still doesn't solve why my Docker instance doesn't appear to be running though...

Upvotes: 3

Related Questions