I have an application that uses shared memory, while running application we occupy some shared memory and when we kill the process we release those memory like we are suppose to do.
The question I am wondering is when I am running this application inside docker container and if docker itself is killed say using docker kill docker_id. I have seen that SIGINT of process is not called sometime and container just got killed and removed.
I want to understand what happens to shared memory I allocated in my application if docker itself is removed which properly closing the app.
Will this result in memory leak or docker take care of it itself and memory is released. Is there any way I can handle this if there is an actual memory leak happening.