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:
committed by
Misty Stanley-Jones
parent
2e016f7e6c
commit
da867b5620
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user