docker容器vulfocus搭建

docker容器搭建vulfocus

更新

1
apt-get update

错误

出现这种

1
2
错误:3 https://download.docker.com/linux/debian kali-rolling Release
404 Not Found

则需要

1
2
3
4
cd /etc/apt/sources.list.d
ls
rm docker.list
apt-get update && apt-get upgrade

然后重新apt-get update

添加GPG密钥

1
curl  -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

更新源

1
echo 'deb https://download.docker.com/linux/debian stretch stable'> /etc/apt/sources.list.d/docker.list

导入证书

1
apt-get install apt-transport-https  ca-certificates  curl  gnupg2  software-properties-common

更新

1
apt-get update 

安装docker

1
apt install docker.io

查看是否安装完成

1
docker -v

拉取docker镜像

1
docker pull vulfocus/vulfocus:latest

创建vulfocus容器

1
2
docker run -d -p 80:80 -v /var/run/docker.sock:/var/run/docker.sock  -e VUL_IP=xxx.xxx.xxx.xxx vulfocus/vulfocus

查看地址

1
docker ps -a

启动容器

1
docker start 6abab70cabc4

然后就能够访问

查看评论