Docker Community Forums

Share and learn in the Docker community.

Docker Container Processes

docker

(SegsIk) #1

Hi,

Quite new to Docker, but stuck on how docker manages processes (Pids) on the containers. Also currently run the docker init process on PID 1.

Issue:

I have a docker container that spins up multiple processes (Pids) to process a request this processes (Pids) utilizes RAM resources for processing after the request is completed, the process(Pids) don’t exit it keeps on holding on to the RAM and not dying to release the used resource.

When i kill one of the processes in the container it kills the docker container. I need the processes to die and release the resources after a request to it is completed not killing the Docker container.

Is this possible? If so how can i accomplish this?