server.js
var http = require('http');
var server = http.createServer();
server.listen(3000, function() {
console.log('listening on port 3000...');
});
docker run --rm -it -v /home/foo/repos/test/server.js:/usr/test/server.js -w /usr/test node node server.js
You are unable to kill the server by using Ctrl-C anymore. I've tried testing this with an older version of node (0.10.41) and it seems to be working properly. I am able to use docker stop $CONTAINER_ID and it will stop the container.
May be something similar to this