以其他用户身份启动Docker Daemon [英] Start Docker Daemon as other user
问题描述
伙计们,我需要在Ubuntu 14.04下以其他用户身份启动docker守护进程。
我在sudoers和docker的组中都有该用户,但是,我需要以我的测试用户。
Guys, I need to start docker daemon as other user under my Ubuntu 14.04.. I have this user in the sudoers' group and in the docker's group, but, what I need is the docker daemon running as my "test" user.
test @ test:/ usr / bin $启动docker
开始:拒绝发送消息,符合1条规则; type = method_call,sender =:1.88(uid = 1100 pid = 24071 comm = start docker)interface = com.ubuntu.Upstart0_6.Job member = Start错误名称=(未设置) request_reply = 0 destination = com.ubuntu.Upstart(uid = 0 pid = 1 comm = / sbin / init)
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=1100 pid=24071 comm="start docker ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")
我该怎么办
推荐答案
您不能,Docker需要root特权才能运行。没有root用户权限,无法执行隔离进程,挂载文件系统,配置专用网络堆栈等技术。
You can't, Docker requires root privileges to run. The techniques to isolate the process, mount file systems, configure a private network stack, etc, cannot be performed without root privileges.
这篇关于以其他用户身份启动Docker Daemon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!