Docker CE安装(Ubuntu16.04)

1.

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

2.

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

3.

$ sudo apt-get update

4.

$ sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common

5.

$ sudo apt-get install -y docker-ce

6.

$ sudo docker run hello-world

官方文档:
https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository

猜你喜欢

转载自www.cnblogs.com/cs-zh/p/7873312.html