第一天docker環(huán)境的安裝
一、系統(tǒng)環(huán)境
VMware? Workstation 14 Pro
CentOS Linux release 7.5.1804 (Core)
[root@docker01 ~]# more /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
DNS:114.114.114.114
Yum源:系統(tǒng)默認(rèn)
關(guān)閉防火墻和selinux
(1)Install required packages
yum install -y yum-utils device-mapper-persistent-data lvm2
(2)SET UP THE REPOSITORY
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
(3)INSTALL DOCKER CE
yum install -y docker-ce
(4)START THE DOCKER SERVICE
systemctl start docker
啟動docker服務(wù)后會自動創(chuàng)建docker0網(wǎng)橋
yum install -y bridge-utils-1.5-9.el7.x86_64
brctl show
??? ? ?
二、啟動一個測試docker實例
docker run hello-world
出現(xiàn)如下提示表示環(huán)境安裝成功