安装docker

1.yum -y install yum-utils device-mapper-persistent-datalvm2

2.yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3.yum makecache fast

4.yum install docker-ce docker-ce-cli containerd.io
5.systemctl start docker

6.systemctl enable docker

7.安装docker-compost

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

你可能感兴趣的:(docker,docker)