Ubuntu安装Docker
方案1:
sudo wget -qO- https://get.docker.com/ | sh
方案2:
sudo apt-get update
sudo apt-get install docker-engine
方案3:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo vi /etc/apt/sources.list.d/docker.list
deb https://apt.dockerproject.org/repo ubuntu-xenial main
sudo apt-get update
sudo apt-get install docker-engine
启动docker 服务
sudo service docker start
CentOS安装Docker
更新yum命令资源
sudo yum update
安装docker
sudo yum install docker-engine
启动docker 服务
sudo systemctl enable docker.service
sudo systemctl start docker