简体   繁体   中英

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://0.0.0.0:2375 --storage-driver=vfs .

Sadly this error occurs:

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

When I look into the directory /var/run/ I can't see any file named docker.pid .

Starting the service as root works without problems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM