用户开始用docker出现的坑
Got permission denied while trying to connect to the Docker daemon socket at
权限问题:
sudo groupadd docker #添加docker用户组
sudo gpasswd -a $USER docker #将登陆用户加入到docker用户组中
newgrp docker #更新用户组
XXXX is not in the sudoers file. This incident will be reported解决方法
解决方案:
编辑/etc/sudoers文件。也就是输入命令"gedit /etc/sudoers",进入编辑模式,找到这一 行:“root ALL=(ALL) ALL"在起下面添加"ld ALL=(ALL) ALL”(这里的ld是你的用户名),然后保存退出。
如果是只读的,使用:wq!强制保存。