You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在Alpine Docker容器内安装Vuls扫描工具遇问题求助

在Alpine Linux 3.15.4中手动安装Vuls漏洞扫描工具

1. 安装系统依赖包

Alpine使用apk包管理器,先更新索引并安装Vuls运行必需的基础组件:

apk update && apk add --no-cache bash git curl go openssl libc-dev apk-tools
  • bash:Vuls部分脚本依赖bash环境
  • git:用于克隆源码或验证预编译包
  • go:源码编译Vuls时需要,用预编译包可跳过
  • openssl:支持加密相关操作
  • apk-tools:适配Alpine系统的包漏洞扫描逻辑

2. 获取Vuls程序

选项A:预编译二进制包(推荐,无需编译)

根据容器架构(x86_64/arm64等)下载对应版本:

# 以x86_64架构为例,下载最新稳定版
curl -L https://github.com/future-architect/vuls/releases/latest/download/vuls_linux_amd64.tar.gz | tar xz
mv vuls_linux_amd64/vuls /usr/local/bin/
chmod +x /usr/local/bin/vuls

选项B:源码编译

克隆仓库并编译生成可执行文件:

git clone https://github.com/future-architect/vuls.git
cd vuls
go build -o vuls main.go
mv vuls /usr/local/bin/
chmod +x /usr/local/bin/vuls

3. 初始化配置

运行初始化命令生成基础配置文件:

vuls init

编辑生成的config.toml,添加Alpine系统专属扫描配置:

[servers]
[servers.localhost]
host = "localhost"
port = "local"
scanMode = ["fast"]
platform = "alpine"

4. 验证安装与扫描

确认Vuls正常运行:

vuls version

执行首次本地漏洞扫描:

vuls scan

内容的提问来源于stack exchange,提问作者pkaramol

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 14:40:58