You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
FROM node:0.11.16
WORKDIR /app
COPY index.js /app/
CMD ["node", "index.js"]
index.js:
console.log('started');process.stdin.resume();
This app will ignore TERM and INT signals, so it cannot be terminated using Ctrl+C or docker stop. Tested with Docker 1.4.1, Linux kernel 3.16.7.
Other configurations:
Node.js v0.11.16 in Docker, built from source (Alpine Linux, musl-libc): doesn't exit;
Node.js v0.11.16 in Mac OS X, outside of Docker: correctly exits;
Node.js v0.10.36, both in Docker and on Mac OS X: correctly exits.
It appears that Node actually recieves and handles these signals, but for some reason doesn't perform the default action. This can be verified by adding signal listeners in index.js: