Hi.
I tried to scan local applications which are built by docker-compose with Docker ZAP.
However, it did not work well.
There are two sites that I want to scan.
I edited /etc/hosts file to resolve hostname on my Mac.
```
127.0.0.1 aaa.local
127.0.0.1 bbb.local`
```
I use nginx to handle access to my local applications.
`aaa.local` and `bbb.local` are on the same network called `backend`.
when I use the following command:
docker run -p 8090:8090 --add-host=aaa.local:127.0.0.1 --net=backend -t owasp/zap2docker-stable zap-baseline.py -t http://aaa.local/login
I get this error:
Automation plan failures:
Job spider failed to access URL http://aaa.local/login : Connection refused (Connection refused)
Job spider failed to access URL http://aaa.local/ : Connection refused (Connection refused)
I think that docker zap cannot see /etc/hosts file on my Mac.
Is there any way to scan local applications using Docker ZAP?
If I do not have enough informations to specify the cause of it, please let me know.
Thank you.
Best Regards.
Koyo