环境介绍
Centos 7(VMware虚拟机):搭建漏洞测试环境
网络连接配置:NAT模式
ip地址:192.168.50.247/24
windows10(宿主机):
ip地址:192.168.50.216/24
安装Docker需要是Linux内核要3.10以上,使用
uname -a
查看系统信息
一、配置yum源
1、备份
cd /etc/yum.repos.d
mkdir repos_bak ###建立备份使用的文件夹
mv *.repo repos_bak ###备份
2、添加阿里源
curl -O http://mirrors.aliyun.com/repo/Centos-7.repo
curl -O http://mirrors.aliyun.com/repo/epel-7.repo
curl -O http://mirrors.aliyun.com/repo/epel-testing.repo
3、重建yum源缓存
yum clean all && yum makecache
二、安装docker容器
1、查看yum包是否是最新版
yum update -y
2、安装基本依赖环境
yum install -y yum-utils device-mapper-persistent-data lvm2