Container basics · Question 11 of 12
An image starts with CMD node server.js (shell form). When the pod is deleted, the container always takes the full 30 seconds and ends with SIGKILL. What is the most likely cause?
1 answer is correct. Hard Created with AI
Show answer
Answer
- D PID 1 is /bin/sh, which does not forward SIGTERM to the Node process
Explanation
In shell form, the command is started via /bin/sh -c. The exec form CMD ["node", "server.js"] makes the application itself PID 1, so it receives SIGTERM and can shut down cleanly.