C0deH4cker / PwnableHarness

Manage building and deploying exploitation challenges with ease
MIT License
57 stars 4 forks source link

Add CPU and memory usage limits for Docker containers #32

Closed C0deH4cker closed 4 weeks ago

C0deH4cker commented 1 month ago

Fixes #11.

Challenges add limits using DOCKER_CPULIMIT and DOCKER_MEMLIMIT. The defaults for these are 0.5 CPUs and 500MB of memory.

C0deH4cker commented 4 weeks ago

This PR protects the host against resource exhaustion from the container, but more work is needed to isolate resources between connections' process trees.