From 8be48291da9701e219c85b33b3b64f0fe361e827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolae=20Vl=C4=83descu?= Date: Mon, 7 Aug 2017 11:49:40 +0300 Subject: [PATCH] Add a more elegant alternative to the reap option Add a more elegant alternative to the reap option using the native built-in docker init process --- website/source/docs/agent/options.html.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/source/docs/agent/options.html.md b/website/source/docs/agent/options.html.md index 92dc413dc..4dfb2616c 100644 --- a/website/source/docs/agent/options.html.md +++ b/website/source/docs/agent/options.html.md @@ -971,7 +971,9 @@ Consul will not enable TLS for the HTTP API unless the `https` port has been ass it controls reaping regardless of Consul's PID (forces reaping on or off, respectively). This option was removed in Consul 0.7.1. For later versions of Consul, you will need to reap processes using a wrapper, please see the [Consul Docker image entry point script](https://github.com/hashicorp/docker-consul/blob/master/0.X/docker-entrypoint.sh) - for an example. + for an example. If you are using Docker 1.13.0 or later, you can use the new `--init` option of the `docker run` command + and docker will enable an init process with PID 1 that reaps child processes for the container. + More info on [Docker docs](https://docs.docker.com/engine/reference/commandline/run/#options). * `reconnect_timeout` This controls how long it takes for a failed node to be completely removed from the cluster. This defaults to