Skip to content

Instantly share code, notes, and snippets.

@ytlm
Last active April 17, 2019 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytlm/a168d76705d5fe674cacdf17a5daf098 to your computer and use it in GitHub Desktop.
Save ytlm/a168d76705d5fe674cacdf17a5daf098 to your computer and use it in GitHub Desktop.
非root用户使用docker命令
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