LXC container gets killed for running out of RAM

To clarify things, the container runs out of RAM. but the host has plenty of free RAM. Shouldn't it kill the process instead of killing the whole container?
 
Last edited:
To clarify things, the container runs out of RAM. but the host has plenty of free RAM. Shouldn't it kill the process instead of killing the whole container?

Depends on what is killed. If the first process is killed, every children is also killed, hence killing the whole container.