ubuntu上安装docker

在Ubuntu16.04上安装Docker

Docker是一个开源的容器引擎,它有助于更快地交付产品。
Docker可将应用程序和基础设施层隔离,并且将基础设施当作程序一样进行管理。
使用Docker,可以更快地打包,测试以及部署应用程序,并可以缩短从编程到部署运行代码的周期。

在Ubuntu16.04上安装Docker

sudo apt-get -y install \
  apt-transport-https \
  ca-certificates \
  curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
sudo apt-get update
sudo apt-get -y install docker-ce

测试安装是否成功:

sudo docker run hello-world

 

posted @ 2018-03-31 14:43  小何同學  阅读(269)  评论(0编辑  收藏  举报