Skip to content

Commit a6fe6f7

Browse files
committed
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 <[email protected]>
1 parent d1f33ac commit a6fe6f7

2 files changed

Lines changed: 10 additions & 17 deletions

File tree

compose/compose-file/compose-file-v2.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -738,21 +738,18 @@ options and tags it with the specified tag.
738738
> [Added in version 2.2 file format](compose-versioning.md#version-22).
739739
740740
Run an init inside the container that forwards signals and reaps processes.
741-
Either set a boolean value to use the default `init`, or specify a path to
742-
a custom one.
741+
Set this option to `true` to enable this feature for the service.
743742

744743
version: '2.2'
745744
services:
746745
web:
747746
image: alpine:latest
748747
init: true
749748

750-
751-
version: '2.2'
752-
services:
753-
web:
754-
image: alpine:latest
755-
init: /usr/libexec/docker-init
749+
> The default `init` binary that is used is [Tini](https://github.com/krallin/tini),
750+
> and is installed in `/usr/libexec/docker-init` on the daemon host. You can
751+
> configure the daemon to use a custom init binary through the
752+
> [`init-path` configuration option](/engine/reference/commandline/dockerd/#daemon-configuration-file)
756753
757754
### isolation
758755

compose/compose-file/index.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,7 @@ options and tags it with the specified tag.
12521252
> [Added in version 3.7 file format](compose-versioning.md#version-37).
12531253

12541254
Run an init inside the container that forwards signals and reaps processes.
1255-
Either set a boolean value to use the default `init`, or specify a path to
1256-
a custom one.
1255+
Set this option to `true` to enable this feature for the service.
12571256

12581257
```yaml
12591258
version: '3.7'
@@ -1263,13 +1262,10 @@ services:
12631262
init: true
12641263
```
12651264

1266-
```yaml
1267-
version: '2.2'
1268-
services:
1269-
web:
1270-
image: alpine:latest
1271-
init: /usr/libexec/docker-init
1272-
```
1265+
> The default `init` binary that is used is [Tini](https://github.com/krallin/tini),
1266+
> and is installed in `/usr/libexec/docker-init` on the daemon host. You can
1267+
> configure the daemon to use a custom init binary through the
1268+
> [`init-path` configuration option](/engine/reference/commandline/dockerd/#daemon-configuration-file)
12731269

12741270
### isolation
12751271

0 commit comments

Comments
 (0)