Under fork bomb the other containers get killed [closed]

Expected behavior

The container with the ulimits is killed while the other live happily.

Actual behavior

The other containers are killed but the one containing the fork bomb remains.


Docker version 1.12.0-rc4, build e4a0dbc, experimental

Steps to reproduce the behavior

  1. Start two containers, e.g. `docker run -d alpine:3.4 /bin/sh -c ‘while sleep 2; do date; done’
  2. Start a third container, e.g. docker run -it --ulimit nofile=8 --ulimit nproc=4 alpine:3.4 /bin/sh
  3. Run a fork bomb on this third container b(){ b | b &}; b()
  4. wait.

Reviving the killed containers takes two calls.

Any idea?

My bad ulimit nproc is set for a user rather than a container… by Linux design.