Install docker on Ubuntu16.04
Durant35 opened this issue · comments
Gary Chan commented
Gary Chan commented
使用阿里云
的apt仓库(使用国内源)
$ curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
add-apt-repository
通过sudo apt-get install software-properties-common
安装
Gary Chan commented
Manage Docker as a non-root user
- Add your user to the
docker
group.
$ sudo usermod -aG docker $USER
- Log out and log back in so that your group membership is re-evaluated.