I am looking at this repo: https://github.com/zricethezav/gitleaks
To run with Docker we'd use
docker run --rm --name=gitleaks zricethezav/gitleaks -v -r https://github.com/zricethezav/gitleaks.git
I am having trouble figuring out what the -r
flag is doing...it doesn't look like it's making it read-only, does anyone know?
The
-v -r ...
apply to the container process not to thedocker
command.The way to read this is in 2 parts:
Run a command
gitleaks
usingdocker run --rm --name=gitleaks zricethezav/gitleaks
Provide
gitleaks
flags and params with-v -r https://github.com/zricethezav/gitleaks.git
You can (often) determine what flags|parameters a container instance wants by running the process without any flags|parameters or giving it
--help
, i.e.