启动docker;docker service images
查看docker的状态:docker service status
先安装docker-compose
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-uname -s
-uname -m
-o /usr/local/bin/docker-compose
添加执行权限:chmod +x /usr/local/bin/docker-compose
检查是否安装成功:docker-compose version
下载git yum install -y git
然后发现命令不适应,修改命令为:sudo apt-get install git
查看是否安装成功: git -version
下载编译vulhub靶机:
出现如图所示则表明安装成功:
cd /vulhub/httpd/CVE-2017-15715
拉取vulhub环境:docker-compose up -d
查看镜像映射端口: