Giter Club home page Giter Club logo

Comments (3)

wuli888 avatar wuli888 commented on May 24, 2024 2

我的也是centos7的环境,一开始也出现了这样的问题,你可以按照我这样操作一下:
第一步:vi /etc/sysconfig/docker 编辑这个文件,找到下面这一段话,
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
将这段话改成:OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false'
image

第二步:然后关闭centos7的防火墙,和SELinux
临时关闭防火墙:systemctl stop firewalld
防火墙开机不启动:systemctl disable firewalld
临时关闭SELinux:setenforce 0

第三步:重新启动docker环境,执行:
docker run -d -p 80:80 -v /var/run/docker.sock:/var/run/docker.sock -e VUL_IP=xxx.xxx.xxx.xxx vulfocus/vulfocus

第四步:打开靶场界面,登录靶场后进行添加镜像。
image
image

from vulfocus.

lxyevil avatar lxyevil commented on May 24, 2024

这个问题大佬已经帮我解决了,如果不改这些配置文件的话,可以加上--privileged参数,如:
docker run -d --privileged -p 80:80 -v /var/run/docker.sock:/var/run/docker.sock -e VUL_IP=XX.XX.XX.XX vulfocus/vulfocus,不过有容器逃逸的风险。

from vulfocus.

Becivells avatar Becivells commented on May 24, 2024

/var/run/docker.sock` 权限问题比较合适的方案为

  1. 配置 Docker URL(vulfocus/settings.py),启用 tcp://127.0.0.1:2375
  2. 添加 docker 用户组把 nginx 用户加进去
    nginx为运行用户
    groupadd docker
    usermod -aG docker nginx
    systemctl restart docker
    

from vulfocus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.