centos7安裝docker

viqiang1991發表於2020-10-01
1.安裝yum-utils:
yum install -y yum-utils device-mapper-persistent-data lvm2

2.為yum源新增docker倉庫位置:
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

3.安裝docker:
yum install docker-ce

4.設定開機啟動以及啟動docker
systemctl enable docker && systemctl start docker

 

相關文章