docker centos install

1.

yum update
2.
yum install -y yum-utils device-mapper-persistent-data lvm2
3.
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo(阿里仓库)
centos8:
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
4
yum list docker-ce
5.
yum install docker-ce
6.
systemctl start docker
systemctl enable docker
7
docker version
 
9:
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version
 
 
 
 
posted @ 2019-12-10 14:34  退役产品汪  阅读(296)  评论(0编辑  收藏  举报