Hello!
I want to run the docker container with my custom command, but I don’t know how to write the command correctly.
1) Dowload dep check form those
https://hub.docker.com/r/owasp/dependency-check with command "docker pull owasp/dependency-check" - it's ok
2)
I believe that everything is ok, "docker run owasp/dependnecy-check"
then in start ok
sudo docker run owasp/dependency-check
[sudo] password for myuser:
usage: Dependency-Check Core [--advancedHelp] [--enableExperimental]
[--exclude <pattern>] [-f <format>] [--failOnCVSS <score>] [-h]
[--junitFailOnCVSS <score>] [-l <file>] [-n] [-o <path>]
[--prettyPrint] [--project <name>] [-s <path>] [--suppression
<file>] [-v]
Dependency-Check Core can be used to identify if there are any known CVE
vulnerabilities in libraries utilized by an application. Dependency-Check
Core will automatically update required data from the Internet, such as
3) Now the task is this, I have a repository in the file system, I want to give it a check in dep check and get a report from the log files,
I know that the command should be like that: sudo /home/myuser/dependency-check/bin/dependency-check.sh --project TEST --scan /path/to/project --out /home/myuser/TESTREPORT.html --enableExperimental --log /home/TESTLOG.txt
But how to properly run this image by mounting the repository in it and then the report appears?
Trying to figure out Docker until I get it right...