Durant35 / docker_learning

docker learning step by step

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install docker on Ubuntu16.04

Durant35 opened this issue · comments

使用阿里云的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安装

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.