This is a simple example of how to use the OWASP ZAP Automation Framework with docker to automate the execution of a scan plan.
Powershell
$ docker run --rm -e DISPLAY=:0 -v ${pwd}:/zap/wrk/:rw -v ${pwd}/logs/zap.log:/home/zap/.ZAP/zap.log -t softwaresecurityproject/zap-stable zap.sh -cmd -autorun /zap/wrk/zap.yml
Bash
$ docker run --rm -e DISPLAY=:0 -v $(pwd):/zap/wrk/:rw -v $(pwd)/logs/zap.log:/home/zap/.ZAP/zap.log -t softwaresecurityproject/zap-stable zap.sh -cmd -autorun /zap/wrk/zap.yml