Comments (3)
我的也是centos7的环境,一开始也出现了这样的问题,你可以按照我这样操作一下:
第一步:vi /etc/sysconfig/docker 编辑这个文件,找到下面这一段话,
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
将这段话改成:OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false'
第二步:然后关闭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
from vulfocus.
这个问题大佬已经帮我解决了,如果不改这些配置文件的话,可以加上--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.
/var/run/docker.sock` 权限问题比较合适的方案为
- 配置 Docker URL(
vulfocus/settings.py
),启用tcp://127.0.0.1:2375
- 添加 docker 用户组把 nginx 用户加进去
nginx为运行用户groupadd docker usermod -aG docker nginx systemctl restart docker
from vulfocus.
Related Issues (20)
- 在线靶场vulfocus.cn,启动环境后无法访问 HOT 3
- 上传本地镜像一直显示下载中 HOT 4
- 增加网卡是否允许访问指定网段的功能
- 虚拟机搭建,一键同步时报 HOT 3
- vulfocus/django镜像下载失败
- docker搭建环境无法注册账户? HOT 2
- 服务器宕机后,启动平台,发现场景无法停止,重启容器也无法解决 HOT 1
- 如何删除新增的普通用户?
- 关于Vulfocus场景拓扑镜像下载问题 HOT 3
- vulfocus使用docker启用后,网站正常访问,但漏洞镜像无法拉取。
- 使用docker-compose本地部署环境镜像拉取异常 HOT 4
- 无法使用管理员账户登录怎么解决?
- vulfocus/spring-cve_2020_5410:new镜像无法启动,出现BUILD FAILURE
- 内置容器镜像 dcrcms 文件上传 (CNVD-2020-27175)描述错误:
- cnvd_2015_07557 redis未授权访问靶场的问题
- 内部服务器错误 好像是TypeError: Object of type ConnectionError is not JSON serializable HOT 1
- vulfocus中的pikachu镜像的flag在哪一关啊,怎么获得
- docker启动可以更改端口吗?更改后靶机文件等系统配置全部丢失
- 注册在线靶场,邮箱发送不了 HOT 4
- 镜像管理>一键同步完成后,选择镜像点击下载,首页无镜像 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulfocus.