Start Docker Daemon as other user

霸气de小男生 提交于 2019-12-20 04:25:24

问题


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$ start docker

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 ")

What can I do to run docker daemon under my 'test' user without sudo?


回答1:


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.



来源:https://stackoverflow.com/questions/39049368/start-docker-daemon-as-other-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!