Ubuntu 16.10 docker安装

来源:互联网 发布:中国南山开发集团知乎 编辑:程序博客网 时间:2024/05/07 14:09

最近在学习docker,安装过程做下记录

  1. 我采用的是下载deb文件,然后上传到服务器的安装方式,所以首先要先下载deb文件,也就是docker官网的安装指南的Install from a package
  2. Go to https://download.docker.com/linux/ubuntu/dists/, choose your Ubuntu version, browse to pool/stable/ and choose amd64, armhf, or s390x. Download the .deb file for the Docker version you want to install and for your version of Ubuntu.
    到上面的网址,依次进入pool/stable/ 然后选择amd64或者armhf或者s390x,这里我选择的amd64,然后选择版本进行下载。

  3. Install Docker CE, changing the path below to the path where you downloaded the Docker package.
    将刚才下载的deb文件上传到需要安装docker的服务器,运行以下命令进行安装

sudo dpkg -i /path/to/package.deb
安装完成后,docker将会自动运行,这时可以运行以下hello-word看看了sudo docker run hello-world以下是成功界面

这里写图片描述

原创粉丝点击