- In order to log into a specific container in a bash shell you have to run following command
docker exec -ti <container id|name> bash
- The above command will take u to the bash shell, now inside the bash shell search of the command which is running your application, for example, java or node
kill -2 $(pidof node)
- The above command will kill the process node by sending SIGINT