The most straightforward way to use this image is to just run it:
$ docker run hashicorp/consul-template
The container behaves the same as executing the raw binary, accepting the same flags, options, and configuration.
The default container is built from scratch with vendored CA certificates. There's also an
alpine container which uses
dumb-init for more advanced uses:
$ docker run hashicorp/consul-template:alpine
The alpine container provides volumes for configuration and data. It's also possible to pass in local configuration via an environment variable.
$ docker run -e 'CT_LOCAL_CONFIG=log_level = "debug"' hashicorp/consul-template