Hello guys, I'm trying to run ZAP headless in a docker container using the following commands:
docker pull softwaresecurityproject/zap-stable
sudo docker run -p 5000:5000 -i softwaresecurityproject/zap-stable zap.sh -daemon -port 5000 -host 0.0.0.0
But It returns the error bellow:
5033 [ZAP-daemon] INFO org.parosproxy.paros.CommandLine - Add-on downloaded to: /home/zap/.ZAP/plugin/selenium-release-15.14.0.zap
35047 [ZAP-daemon] WARN org.zaproxy.addon.network.ExtensionNetwork - Failed to start the main proxy: java.net.BindException Address already in use
35047 [ZAP-daemon] ERROR org.parosproxy.paros.CommandLine - Terminating ZAP, unable to start the main proxy.
39677 [ZAP-daemon] INFO org.zaproxy.zap.DaemonBootstrap - OWASP ZAP 2.13.0 terminated.
I tried using other ports and using different commands but it results to the same error. What should I do?