docs(BestPractices.md/Handling Kernel Signals): fix
`CTRL-C` sends `SIGINT` signal, not `SIGTERM`.
This commit is contained in:
parent
b7264ae67b
commit
5510c50a0b
|
@ -64,7 +64,7 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl \
|
|||
|
||||
## Handling Kernel Signals
|
||||
|
||||
Node.js was not designed to run as PID 1 which leads to unexpected behaviour when running inside of Docker. For example, a Node.js process running as PID 1 will not respond to `SIGTERM` (`CTRL-C`) and similar signals. As of Docker 1.13, you can use the `--init` flag to wrap your Node.js process with a [lightweight init system](https://github.com/krallin/tini) that properly handles running as PID 1.
|
||||
Node.js was not designed to run as PID 1 which leads to unexpected behaviour when running inside of Docker. For example, a Node.js process running as PID 1 will not respond to `SIGINT` (`CTRL-C`) and similar signals. As of Docker 1.13, you can use the `--init` flag to wrap your Node.js process with a [lightweight init system](https://github.com/krallin/tini) that properly handles running as PID 1.
|
||||
|
||||
```
|
||||
docker run -it --init node
|
||||
|
|
Loading…
Reference in New Issue