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
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.
Other configurations that I have tested:
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:
Dockerfile:
index.js:
This app will ignore
TERM
andINT
signals, so it cannot be terminated usingCtrl+C
ordocker stop
.Other configurations that I have tested:
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
:It correctly prints
Caught SIG{INT,TERM}
and exits.The text was updated successfully, but these errors were encountered: