https://greenbone.github.io/docs/latest/22.4/container/index.html
原廠的安裝說明文件,說只能掛在這些系統上
Debian stable (bookworm)
Ubuntu 24.04 LTS
Fedora 35 and 36
CentOS 9 Stream
所以我就在windows上,蓋WSL2,在蓋上Ubuntu24.4測試
依序到要下載建立容器的腳本compose.yaml後,容器下載就出現錯誤,某個元件無法下載,是不是下載有時間限制?
試了一下,每次都是這個無法下載
gsa:
image: registry.community.greenbone.net/community/gsa:stable-slim
environment:
MOUNT_PATH: "/mnt/web"
KEEP_ALIVE: 1
healthcheck:
test: ["CMD-SHELL", "test -e /run/gsa/copying.done"]
start_period: 5s
volumes:
- gsa_data_vol:/mnt/web
後來把它改為這個版本就可以下載了
gsa:
image: registry.community.greenbone.net/community/gsa:stable
environment:
MOUNT_PATH: "/mnt/web"
KEEP_ALIVE: 1
healthcheck:
test: ["CMD-SHELL", "test -e /run/gsa/copying.done"]
start_period: 5s
volumes:
- gsa_data_vol:/mnt/web
掛起來後,執行正常,弱掃正常
執行起來會自動更新,要等一下子,可觀察Log
可參考這篇文,用排程更新
https://blog.jdp.tw/2026/01/14/greenbone-openvas-with-docker-compose-and-cron-automatic-daily-feed-updates/
Greenbone 社群版(OpenVAS) 使用 docker-compose + cron 排程每日自動更新 feed