Let the container stop gracefully with exec!
Right now the container can't stop gracefully because the sshd-server runs on the server as PID 0. This results in the docker daemon not killing it but waiting for it to die, which never happens, and results in the default timeout-wait before it KILLS the process. With exec, the sshd becomes PID 1 and can receive and process signals(probably SIGTERM here) and handles them as well. The container stops now nearly instantly..pull/4/head
parent
b0856b558e
commit
3ae497e2eb
Loading…
Reference in New Issue