[英]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. 我想用root以外的用户启动Docker守护进程。
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
. 我正在尝试使用
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
FATA [0000]启动守护程序时出错:open /var/run/docker.pid:权限被拒绝
When I look into the directory /var/run/
I can't see any file named docker.pid
. 当我查看目录
/var/run/
看不到任何名为docker.pid
文件。
Starting the service as root
works without problems. 以
root
身份启动服务可以正常工作。
The Docker daemon must run as root. Docker守护程序必须以root用户身份运行。
Edit: https://docs.docker.com/engine/security/security/#/docker-daemon-attack-surface 编辑: https : //docs.docker.com/engine/security/security/#/docker-daemon-attack-surface
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.