Failed to scan zap using own docker images

118 views
Skip to first unread message

Subharanjan ojha

unread,
Aug 17, 2023, 9:14:24 AM8/17/23
to ZAP User Group
Failed to scan ZAP USING OWN DOCKER IMAGES
I am using github action to scan zap for a java application using my own docker image.
Getting docker: error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed : unable to start container process: exec: "zap-api-scan.py" : executable file not found in $path: unknown.
Time="2023-08-17T17:17:35+05:30" level=error msg="error waiting for container : context canceled "
Scanning process completed , starting to analyze the results!
Failed to locate the json report generated by zap scan

Simon Bennetts

unread,
Aug 17, 2023, 9:20:00 AM8/17/23
to ZAP User Group
This error message seems pretty specific:
  • unable to start container process: exec: "zap-api-scan.py" : executable file not found in $path: unknown.
Can you print out the $path variable?
Is "zap-api-scan.py" in your image, and does it have execute perms?

Its difficult to be more specific without knowing how you created your image..

cheers,

Simon
Reply all
Reply to author
Forward
0 new messages