testssl.sh/Dockerfile.md
Peter Gallagher d471d7fdf3
Output files to host when using Docker
Provides an example of how to create output files in the host filesystem when using Docker.
2019-08-14 16:50:29 +01:00

979 B

Usage:

(in git directory):

docker build -t mytestssl .
docker run -t mytestssl example.com

You can also supply command line options like:

docker run -t mytestssl -p --header example.com

Please keep in mind that any output file (--log, --html, --json etc.) will be created in the container. If you wish to have this created in your local directory you can mount a volume and change the output prefix e.g.:

docker run -t -v `pwd`:/data drwetter/testssl.sh --html --outprefix /data/ example.com

Also if you don't provide a user, this docker container uses a non-root user.

You can also pull the image from dockerhub and run:

docker run -t drwetter/testssl.sh --pfs example.com

Tags supported are currently: latest, stable which are all the same and point to 3.0. And for the indomitable users who prefer to run old stuff 2.9.5. The tag 2.9dev should not be used.

docker run -t drwetter/testssl.sh:stable example.com.