Running HashiCorp Consul agent with non-root user setup, cli and monitoring plugins
447
CONSUL_UID environment variable (inspired by this article);curl and monitoring-plugins to use in health checks, as well as jq and consul-cli to use in handlers;docker run -it --rm \
--name consul \
-p 8500:8500 \
beyondrepair/consul-container
docker run -it --rm \
--name consul \
-v /path/to/config/:/config \
-p 8500:8500 \
beyondrepair/consul
Assuming /path/to/config is readable by host user with id 9001
docker run -it --rm \
--name consul \
-v /path/to/config/:/config \
-e CONSUL_UID=9001 \
-p 8500:8500 \
beyondrepair/consul
Content type
Image
Digest
Size
22.4 MB
Last updated
almost 9 years ago
docker pull beyondrepair/consul-container