I have a react app hosted on localhost:5000 in the network zapnet
when i run: docker run -p 8090:8090 --net=zapnet -t owasp/zap2docker-stable zap-baseline.py -t
http://localhost:5000i get:
Using the Automation Framework
Automation plan failures:
Job spider failed to access URL
http://localhost:5000 : Connect to
http://localhost:5000 [localhost/
127.0.0.1] failed: Connection refused (Connection refused)
I saw the documentation where they suggested:
docker run -t softwaresecurityproject/zap-weekly zap-baseline.py -t http://$(ip -f inet -o addr show docker0 | awk '{print $4}' | cut -d '/' -f 1):5000
but i am getting:
Option "-f" is unknown, try "ip help".
Using the Automation Framework
Automation plan failures:
Job spider failed to access URL http://:5000 : java.lang.IllegalArgumentException: Host name must not be empty
2024-03-07 04:58:28,694 Failed to access summary file /home/zap/zap_out.json
Can anyone please help me with steps/commands?