- runs Consul process under dumb-init as a non-root user with the possibity of mapping to an existing user id on host via
CONSUL_UID
environment variable (inspired by this article); - ships with
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