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 Docker daemon must run as root.
Edit: https://docs.docker.com/engine/security/security/#/docker-daemon-attack-surface
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.