1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

Add docs for new init option in service config

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F
2017-04-26 15:18:54 -07:00
committed by Misty Stanley-Jones
parent 2e016f7e6c
commit da867b5620

View File

@@ -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).