避免每次运行docker都输入sudo

在终端输入:
sudo usermod -a -G docker <yourUserName>

注销后重新登录Linux即可。

原文地址:https://www.cnblogs.com/bwjblogs/p/14035038.html