Chaos monkey for your Docker containers
- Randomly restart containers that match a regex
In a python virtual environment
pip install docker_chaos_monkey
Randomly restart a container that matches my_container* each 30 seconds :
docker-chaos-monkey -n my_container* -s 30
usage: docker-chaos-monkey [-h] -n NAME [-s SLEEP] [-v]
Docker container chaos
optional arguments:
-h, --help show this help message and exit
-n NAME, --name NAME container name regex pattern
-s SLEEP, --sleep SLEEP
sleep duration in seconds between consecutive actions
-v, --verbose increase output verbosity