第一天docker环境的安装
一、系统环境
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源:系统默认
关闭防火墙和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服务后会自动创建docker0网桥
yum install -y bridge-utils-1.5-9.el7.x86_64
brctl show
二、启动一个测试docker实例
docker run hello-world
出现如下提示表示环境安装成功
作者:安静的熊猫人
链接:https://www.jianshu.com/p/833ce8e29d4d