Consul Template containerized in a scratch contaier
1.8K
This project puts Consul Template in scratch docker container. It is available on Docker Hub and can be pulled using the following command.
docker pull alectolytic/consul-template
You will note that this is a tiny image.
$ docker images | grep docker.io/alectolytic/consul-template
docker.io/alectolytic/consul-template 90424465fa2f 12 minutes ago 6.495 MB
docker run --rm -it alectolytic/consul-template
docker run --rm -it \
-v /path/to/config.json:/config.json \
alectolytic/consul-template -config=/config.json
NOTE: If running on an SELinux enabled system, run chcon -Rt svirt_sandbox_file_t /path/to/config.json before staring consul.
# create data volume
docker create --entrypoint=_ -v /templates --name templates scratch
# run consul-template with the data volume
docker run --rm -it \
--volumes-from templates \
alectolytic/consul-template
Content type
Image
Digest
sha256:cc62dcc7e…
Size
4.2 MB
Last updated
over 10 years ago
docker pull alectolytic/consul-template