CentOS 7下安裝Docker
安裝一些必要的系統(tǒng)工具:
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
添加軟件源信息:
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
更新 yum 緩存:
sudo yum makecache fast
安裝 Docker-ce:
sudo yum -y install docker-ce
設(shè)置 Docker 開(kāi)機(jī)自啟
sudo systemctl enable docker
啟動(dòng) Docker 后臺(tái)服務(wù)
sudo systemctl start docker
測(cè)試運(yùn)行 hello-world
[root@runoob ~]# docker run hello-world
本文來(lái)自博客園,作者:一事冇誠(chéng),轉(zhuǎn)載請(qǐng)注明原文鏈接:http://www.rzrgm.cn/ysmc/p/12107763.html

浙公網(wǎng)安備 33010602011771號(hào)