gateone docker部署
安装docker
ubuntu14.04安装docker
sudo apt-get update
which curl
curl -ssl https://get.docker.com/ | sh
apt-get -y install docker.io
ubuntu16.04安装docker
sudo apt-get remove docker docker-engine docker-ce docker.io
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-cache madison docker-ce
apt-get install -y docker-ce
centos7安装docker
yum remove docker docker-common docker-selinux &&
yum install -y yum-utils device-mapper-persistent-data &&
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&
yum list docker-ce --showduplicates | sort -r &&
yum install docker-ce-17.12.1.ce-1.el7.centos.x86_64 &&
service start docker