sudo groupadd docker
sudo usermod -aG docker ${USER}
sudo systemctl restart docker
su root # 切换到root用户 su ${USER} # 再切换到原来的应用用户以上配置才生效