Last active
April 17, 2019 12:39
-
-
Save ytlm/a168d76705d5fe674cacdf17a5daf098 to your computer and use it in GitHub Desktop.
非root用户使用docker命令
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo groupadd docker | |
sudo gpasswd -a ${USER} docker || sudo usermod -aG docker ${USER} | |
sudo systemctl restart docker | |
sudo chmod a+rw /var/run/docker.sock | |
# 退出当前用户重新进来,就可以用非root用户使用docker命令 | |
wireshark无法抓包 | |
ls /usr/bin/dumpcap -la | |
sudo gpasswd -a ${USER} wireshark || sudo usermod -aG wireshark ${USER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment