I am running multiple docker containers via python script. I already handled to kill all dockers when gracefully (cltr+c) shutdown the python script but when it's forced killed, the docker remains running.
Question is, is there a way to kill the docker containers if the python script is killed ungracefully? (Perhaps setting the python script as parent process to the docker process? Is there such thing?)