mirror of https://github.com/docker/docs.git
Fix typo (#5130)
This commit is contained in:
parent
f874d68c29
commit
661ae69c31
|
@ -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=$?
|
||||
|
|
Loading…
Reference in New Issue