I am working on a project to implement a security pipeline with jenkins/docker/owaspZAP.
What I want to do is from jenkins to run a kali or owasp zap docker container with the command that starts the OWASP ZAP API and then copy a python script to the container and run that script.
The problem I am facing now is that jenkins runs the docker container fine, but stops at the fact that the running of the headless API gives back output that stays forever (as it logs directly to terminal). So what I want to know is:
Is there anyway to run a docker container with commands without it giving any output but the name of the container?
Specifically I am running the following command:
docker run --name zappy owasp/zap2docker-stable zap.sh -daemon
Thank you for your replies