mattiash / docker-pino-sample

Sample code for logging with pino from a docker container
https://mattias.holmlund.se/2019/01/logging-with-pino-from-docker/
4 stars 2 forks source link

Container does not exit when node exits #1

Closed mattiash closed 5 years ago

mattiash commented 5 years ago

@albertkang wrote in https://github.com/pinojs/pino/issues/350#issuecomment-460230153

@mattiash, using your solution if my node process exits, i.e., process.exit(1) - the entrypoint shell does not exit and I'm left with a container is still running. How can I change your script to exit the shell as well?

mattiash commented 5 years ago

@albertkang: Can you check if PR #2 solves the problem for you?