This commit is contained in:
Joao Fernandes 2017-10-26 15:35:31 -07:00 committed by Misty Stanley-Jones
parent f874d68c29
commit 661ae69c31
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ shared volumes.
The container's main process is responsible for managing all processes that it
starts. In some cases, the main process isn't well-designed, and doesn't handle
"reaping" (stopping) child processes gracefully when the container exists. If
"reaping" (stopping) child processes gracefully when the container exits. If
your process falls into this category, you can use the `--init` option when you
run the container. The `--init` flag inserts a tiny init-process into the
container as the main process, and handles reaping of all processes when the
@ -57,7 +57,7 @@ this in a few different ways.
# more than one service in a container. The container will exit with an error
# if it detects that either of the processes has exited.
# Otherwise it will loop forever, waking up every 60 seconds
while /bin/true; do
ps aux |grep my_first_process |grep -q -v grep
PROCESS_1_STATUS=$?