之前拉取的Vulfocus镜像同步功能失效,最简单的解决办法就是换一个能同步的版本
# 修改镜像源
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://dockerproxy.com/"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
# 拉取镜像
docker pull dockerproxy.com/vulfocus/vulfocus:latest
# 再重新开启靶场
docker create -p 88:80 -v /var/run/docker.sock:/var/run/docker.sock -e VUL_IP=192.168.31.61 dockerproxy.com/vulfocus/vulfocus #开启靶场,不能为 127.0.0.1
docker start f28339b0f9411 #启动容器