zaproxy: Latest owasp/zap2docker-stable can't find Java 11
Describe the bug
Using the image owasp/zap2docker-stable
and running zap-api-scan.py
results in the following error:
Exiting: ZAP requires a minimum of Java 11 to run, found
Steps to reproduce the behavior
The full command that we run is:
zap-api-scan.py -I -d -r owasp_report.html -J owasp_report.json -t ${openapi_target} -f openapi -O ${docker_service}:${docker_port} -c api-scan-config.conf
Expected behavior
We would expect the ZAP container to start correctly, but it doesn’t and times out after a while.
Software versions
owasp/zap2docker-stable:latest
Screenshots
No response
Errors from the zap.log file
No response
Additional context
No response
Would you like to help fix this issue?
- Yes
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (13 by maintainers)
Yep, this is the one. Moving to docker-engine 20.10.10+ fixed this for us.
Thanks for letting us know.
The fix is update Docker to a newer version. https://github.com/adoptium/containers/issues/215#issuecomment-1142046045
ZAP is using a different/newer base image in 2.12 images (still there’s no issue in ZAP’s images).
This issue or some of the linked resources may help you: https://github.com/zaproxy/zaproxy/issues/7496