- 用docker启动报错
[docker@iZuf6gl8wxyasxnj79v1g2Z ~]$ sudo service docker start
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for docker:
docker is not in the sudoers file. This incident will be reported.
- 登录root,编辑文件,加用户docker到sudo文件
[root@iZuf6gl8wxyasxnj79v1g2Z docker]# visudo
- 增加用户
docker ALL=(ALL) ALL
具体位置,截图如下