极速安装docker及compose

极速安装docker

1、安装docker

yum install -y wget

cd /etc/yum.repos.d/

wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

yum repolist

yum install -y docker-ce

systemctl restart docker

systemctl enable docker

2、安装docker-compose

yum install -y epel-release

yum install -y docker-compose

你可能感兴趣的:(docker,容器,运维)