50K+
Note: This utilizes a multi-stage build and requires Docker 17.05 or newer. The Docker image is also available from Docker Hub
docker build -t mirantis/get-dtr-cve-db:latest .
Default run command with all default environment variables specified:
docker run -it --rm \
-v ${HOME}/Downloads:/data \
-e CVE_DB_URL_ONLY=false \
-e CLOBBER_FILE=false \
-e DATABASE_OUTPUT="/data" \
-e DATABASE_SCHEMA=3 \
-e DEBUG=false \
-e VERSION_ONLY=false \
mirantis/get-dtr-cve-db:latest
Using the above example, if I want the container to output the database file to ~/Downloads, the above command will work as expected because the volume is being mapped from my machine into the container. If the destination for the database exists in a separate directory, you would need an additional volume defined.
Note: these are the values inside the container. You must pass the actual parent directories as one or more volumes.
CLOBBER_FILE - defaults to false
true to overwrite an existing file of the same database nameCVE_DB_URL_ONLY - defaults to false
true to output the CVE database URL; does not download the CVE databaseDATABASE_OUTPUT - defaults to /data
DATABASE_SCHEMA - defaults to 2
1 - DTR 2.2.5 or lower2 - DTR 2.3.x; 2.4.x; 2.5.15 or lower; 2.6.11 or lower; 2.7.4 or lower3 - DTR 2.5.16 or higher; 2.6.12 or higher; 2.7.5 or higherDEBUG - defaults to false
true to execute the script with set -xVERSION_ONLY - defaults to false
true to output the CVE database version number; does not download the CVE databaseContent type
Image
Digest
Size
5.5 MB
Last updated
about 5 years ago
docker pull mirantis/get-dtr-cve-dbPulls:
5
Jun 29 to Jul 5