- sudo usermod -aG docker username
添加用户组
- $ exit
注销用户
- $ sudo service docker start
启动docker
- $ docker version
检验安装是否成功
- $ systemctl enable docker
随系统启动docker
一键安装
sh -c "$(curl -fsSL https://gitee.com/Alphasxd/install-docker/raw/master/install-docker.sh)"
标签:用户组,sudo,sh,install,docker,安装
From: https://www.cnblogs.com/Sh3ldon/p/16847702.html