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 thedockercommand.The way to read this is in 2 parts:
Run a command
gitleaksusingdocker run --rm --name=gitleaks zricethezav/gitleaksProvide
gitleaksflags and params with-v -r https://github.com/zricethezav/gitleaks.gitYou can (often) determine what flags|parameters a container instance wants by running the process without any flags|parameters or giving it
--help, i.e.