1.添加用戶組
sudo groupadd docker
2.將登錄用戶加入到docker用戶組
sudo gpasswd -a ${USER} docker
3.更新用戶組
newgrp docker
4.更改/var/run/docker.sock權(quán)限
sudo chmod a+rw /var/run/docker.sock
1.添加用戶組
sudo groupadd docker
2.將登錄用戶加入到docker用戶組
sudo gpasswd -a ${USER} docker
3.更新用戶組
newgrp docker
4.更改/var/run/docker.sock權(quán)限
sudo chmod a+rw /var/run/docker.sock