Skip to content

Commit c66cc45

Browse files
Merge pull request #1100 from yxliang01/patch-1
docs(BestPractices.md/Handling Kernel Signals): fix
2 parents 5a0ec97 + 5510c50 commit c66cc45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/BestPractices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl \
6464

6565
## Handling Kernel Signals
6666

67-
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.
67+
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.
6868

6969
```
7070
docker run -it --init node

0 commit comments

Comments
 (0)