Harold L. Brown Harold L. Brown - 11 months ago 76
Linux Question

Error when starting Docker daemon with user other than root (permission denied)

I want to start the Docker daemon with a user other than root.

I'm trying to start it with

docker daemon --host=unix:///var/run/docker.sock --host=tcp:// --storage-driver=vfs

Sadly this error occurs:

FATA[0000] Error starting daemon: open /var/run/docker.pid: permission

When I look into the directory
I can't see any file named

Starting the service as
works without problems.

Answer Source