当我们安装好Ubuntu时,使用鱼香ros一键安装指令
wget http://fishros.com/install -O fishros && . fishros
一键安装Docker后,执行"docker ps"出现"permission denied"
see@lina:~$ docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied
解决办法:
1.添加docker用户组
sudo groupadd docker
2.将登陆用户添加到docker用户组
sudo gpasswd -a $USER docker
3.更新用户组
newgrp docker
4.再次运行 docker ps
see@lina:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
这次修改是在Ubuntu双系统