登陆root用户建立docker组docker
groupadd dockerrest
将当前普通用户加入docker组登录
gpasswd -a ${USER} dockertar
从新启动docker服务(下面是CentOS7的命令)
systemctl restart docker