Deployment

Docker

4min
running in docker the following command will allow you to run trufflehog enterprise as a daemon in docker the last line contains the arguments passed to trufflehog (the scan subcommand followed by the config arguement) everything prior to that are flags for docker itself basic daemon docker run net=host restart=unless stopped \\ v $(pwd)/your config yaml /tmp/your config yaml \\ it us docker pkg dev/thog artifacts/public/scanner\ latest \\ scan config=/tmp/your config yaml using the host certificate authority if your environment uses a custom certificate authority, and it is installed on the host machine, you can mount it into the container for use with the following docker flags custom pki v /etc/pki /etc/pki the location of your custom ca may vary and need adjustment using a http proxy if your environment requires a http proxy for egress, you can specify it with the following docker flags basic daemon env http proxy"http //127 0 0 1 8200" \\ \ env https proxy="http //127 0 0 1 8433" \\ \ env no proxy="localhost,127 0 0 1,localaddress, localdomain com" you will likely need to adjust the hosts for your environment