Add `--init` to `docker run` example
Make example `docker run` command follow best practice described in section `## Handling Kernel Signals`
This commit is contained in:
parent
550335de39
commit
30e942efc9
|
@ -166,6 +166,7 @@ Here is an example of how you would run a default Node.JS Docker Containerized a
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run \
|
$ docker run \
|
||||||
|
--init \
|
||||||
-e "NODE_ENV=production" \
|
-e "NODE_ENV=production" \
|
||||||
-u "node" \
|
-u "node" \
|
||||||
-m "300M" --memory-swap "1G" \
|
-m "300M" --memory-swap "1G" \
|
||||||
|
|
Loading…
Reference in New Issue