(一) centos7下安裝docker

centos7安裝docker

1.更新yum源

yum update

2.選擇鏡像地址

yum-config-manager --add-repo http://download.docker.com/linux/centos/docker-ce.repo(中央倉庫)

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo(阿里倉庫)

3.查看版本並選擇自己需要的版本

(1) yum list docker-ce --showduplicates | sort –r
(2) yum –y install docker-ce-18.03.1.ce
(3) systemctl status docker
(4) systemctl enable docker
(5) docker version
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章