That's a known issue:
https://github.com/zaproxy/zaproxy/issues/7138
You should not run the image with root though, Firefox does not like that.
Best regards.
On 18/04/2022 12:16, Vinda Parab wrote:
> Hello Simon, Team,
>
> It's really nice to see the ZAP Automation Framework now supports
> authenticated scans!!
> *Thanks for getting this in place. Great work!!!*
>
> I have started using ZAP AF now.
> One of my observation is that -
> When I execute the Automation Plan through ZAP docker container using
> latest ZAP docker image, I see the message - "Automation Plan Succeeded", *but
> the scan keeps running.*
>
> While using the same config yaml on my local machine - and run the ZAP AF
> scan, I can see that the scan finishes as expected once the message -
> "Automation Plan Succeeded" appears.
>
> Command used for Docker Container: *docker run -v
> /var/jenkins_home/workspace/ZAP_AF_Baseline_Scan:/zap/wrk/:rw -u root -t
> owasp/zap2docker-stable zap.sh -cmd -autorun /zap/wrk/Baseline_Scan.yaml*
>
> Command used on Local machine CLI: *zap.bat -cmd -autorun
> C:\Users\vinda_parab\Baseline_Scan.yaml*