Run Automation yaml-file from Windows (docker)

257 views
Skip to first unread message

Ernst Noorlander

unread,
Mar 18, 2024, 8:39:13 AM3/18/24
to ZAP User Group
Hi!

I followed all the ZAP Chats, including the ones on Automation Framework. I'm stuck at the beginning. I'm running Docker Desktop on my Windows 11 machine. I can run normal docker run commands (also using ZAP). Now I created an automation plan using the ZAP GUI and saved it to c:\tmp\automated.yaml.

When I try to run it, I do this:

docker run --rm -v c:\tmp\:/zap/wrk -it softwaresecurityproject/zap-stable -cmd -autorun /zap/wrk/automated.yaml

It ends up in:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "-cmd": executable file not found in $PATH: unknown.

What am I doing wrong here? Thanks in advance!

Simon Bennetts

unread,
Mar 18, 2024, 12:58:58 PM3/18/24
to ZAP User Group
The correct command to use for the Automation Framework in docker is given on https://www.zaproxy.org/docs/docker/about/#automation-framework

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages