Skip to content

Commit 61a17c7

Browse files
committed
Added information about the --init option for Docker run
fixes #96
1 parent 69d49dd commit 61a17c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ Build and run container:
241241
docker build -f test.Dockerfile -t date-server .
242242
docker run --rm -p 8080:8080 date-server
243243

244+
In some cases, such as when multiple shell scripts are running and the main script doesn't wait them properly,
245+
you can use `--init` option for `docker run` for prevent zombie processes, see Docker [run reference](https://docs.docker.com/reference/cli/docker/container/run/#init) and about [multiple processes in a container](https://docs.docker.com/engine/containers/multi-service_container/).
246+
244247
SSL
245248
---
246249

shell2http.1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ docker run \-\-rm \-p 8080:8080 date\-server
359359
.
360360
.IP "" 0
361361
.
362+
.P
363+
In some cases, such as when multiple shell scripts are running and the main script doesn\'t wait them properly, you can use \fB\-\-init\fR option for \fBdocker run\fR for prevent zombie processes, see Docker run reference \fIhttps://docs\.docker\.com/reference/cli/docker/container/run/#init\fR and about multiple processes in a container \fIhttps://docs\.docker\.com/engine/containers/multi\-service_container/\fR\.
364+
.
362365
.SH "SSL"
363366
Run https server:
364367
.

0 commit comments

Comments
 (0)