From da867b5620645cfb70c0508cd9e62ecf9c6470fe Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Wed, 26 Apr 2017 15:18:54 -0700 Subject: [PATCH] Add docs for new `init` option in service config Signed-off-by: Joffrey F --- compose/compose-file/compose-file-v2.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/compose/compose-file/compose-file-v2.md b/compose/compose-file/compose-file-v2.md index 306c72e4d0..044a61c611 100644 --- a/compose/compose-file/compose-file-v2.md +++ b/compose/compose-file/compose-file-v2.md @@ -499,6 +499,27 @@ If the image does not exist, Compose attempts to pull it, unless you have also specified [build](#build), in which case it builds it using the specified options and tags it with the specified tag. +### init + +> [Added in version 2.2 file format](#version-22). + +Run an init inside the container that forwards signals and reaps processes. +Either set a boolean value to use the default `init`, or specify a path to +a custom one. + + version: '2.2' + services: + web: + image: alpine:latest + init: true + + + version: '2.2' + services: + web: + image: alpine:latest + init: /usr/libexec/docker-init + ### isolation > [Added in version 2.1 file format](#version-21).