ArmyCyberInstitute / cmgr

CTF Challenge Manager
Apache License 2.0
17 stars 9 forks source link

Docker Network Exhaustion #39

Closed jrolli closed 2 years ago

jrolli commented 2 years ago

Summary

Docker only provides 31 networks by default which cmgr can exhaust pretty quickly under load. This issue is a placeholder for updating the documentation to explain how to recognize this error and update the supporting Docker daemon's config to fix the problem.

Symptom

image

Fix

Add the following to /etc/docker/daemon.json and reboot. NOTE: Make sure to use RFC 1918 networks that are already used by other services with which these containers need to communicate.

{
  "default-address-pools":
    [
      {"base":"10.0.0.0/8","size":29}
    ]
}