mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
compose-file: remove reference to custom init path (#8628)
* compose-file: remove reference to custom init path This option was never functional, and was not intended to be added to the "container create" API, so let's remove it, because it has been removed in Docker 17.05, and was broken in versions before that; see - docker/docker-py#2309 Remove init_path from create - moby/moby#32355 --init-path does not seem to work - moby/moby#32470 remove --init-path from client Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * Update index.md
This commit is contained in:
committed by
Maria Bermudez
parent
e295a6e6cb
commit
de338473e1
@@ -738,8 +738,7 @@ options and tags it with the specified tag.
|
||||
> [Added in version 2.2 file format](compose-versioning.md#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.
|
||||
Set this option to `true` to enable this feature for the service.
|
||||
|
||||
version: "{{ site.compose_file_v2 }}"
|
||||
services:
|
||||
@@ -747,12 +746,11 @@ a custom one.
|
||||
image: alpine:latest
|
||||
init: true
|
||||
|
||||
> The default init binary that is used is [Tini](https://github.com/krallin/tini),
|
||||
> and is installed in `/usr/libexec/docker-init` on the daemon host. You can
|
||||
> configure the daemon to use a custom init binary through the
|
||||
> [`init-path` configuration option](/engine/reference/commandline/dockerd/#daemon-configuration-file).
|
||||
|
||||
version: "{{ site.compose_file_v2 }}"
|
||||
services:
|
||||
web:
|
||||
image: alpine:latest
|
||||
init: /usr/libexec/docker-init
|
||||
|
||||
### isolation
|
||||
|
||||
|
||||
@@ -1255,8 +1255,7 @@ options and tags it with the specified tag.
|
||||
> [Added in version 3.7 file format](compose-versioning.md#version-37).
|
||||
|
||||
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.
|
||||
Set this option to `true` to enable this feature for the service.
|
||||
|
||||
```yaml
|
||||
version: "{{ site.compose_file_v3 }}"
|
||||
@@ -1266,13 +1265,10 @@ services:
|
||||
init: true
|
||||
```
|
||||
|
||||
```yaml
|
||||
version: '2.2'
|
||||
services:
|
||||
web:
|
||||
image: alpine:latest
|
||||
init: /usr/libexec/docker-init
|
||||
```
|
||||
> The default init binary that is used is [Tini](https://github.com/krallin/tini),
|
||||
> and is installed in `/usr/libexec/docker-init` on the daemon host. You can
|
||||
> configure the daemon to use a custom init binary through the
|
||||
> [`init-path` configuration option](/engine/reference/commandline/dockerd/#daemon-configuration-file).
|
||||
|
||||
### isolation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user