We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 具体描述 ./run.sh scan container ea7d6c3d7bc7直接报错:Error: readlink /host/proc/1/ns/pid: permission denied
复现步骤
docker pull registry.veinmind.tech/veinmind/veinmind-runner:latest
wget -q https://download.veinmind.tech/scripts/veinmind-runner-parallel-container-run.sh -O run.sh && chmod +x run.sh
$ ./run.sh scan container ea7d6c3d7bc7 Error: readlink /host/proc/1/ns/pid: permission denied Usage: veinmind-runner scan container [flags] target Examples: 1. scan dockerd container (all) veinmind-runner scan container dockerd:*
相关截图
环境
补充说明 查看了下run.sh文件,内容如下:
#!/bin/bash docker run --rm -v /:/host -v `pwd`:/tool/resource -v /var/run/docker.sock:/var/run/docker.sock registry.veinmind.tech/veinmind/veinmind-runner $*
加上特权参数--privileged后运行就可以了。
The text was updated successfully, but these errors were encountered:
在去做容器扫描的时候,实际是通过 procfs 去实现平行容器的扫描,所以必须让容器有访问 procfs 的权限,可以看一下机器是不是开了 selinux,导致默认情况下即使挂载,也没有权限
procfs
Sorry, something went wrong.
@d1nfinite SELinux没有开启
ok,后面我们把对应的 Capability 加到运行脚本里
d1nfinite
No branches or pull requests
Bug 具体描述
./run.sh scan container ea7d6c3d7bc7直接报错:Error: readlink /host/proc/1/ns/pid: permission denied
复现步骤
docker pull registry.veinmind.tech/veinmind/veinmind-runner:latest
wget -q https://download.veinmind.tech/scripts/veinmind-runner-parallel-container-run.sh -O run.sh && chmod +x run.sh
相关截图
环境
补充说明
查看了下run.sh文件,内容如下:
加上特权参数--privileged后运行就可以了。
The text was updated successfully, but these errors were encountered: