Skip to content

Instantly share code, notes, and snippets.

@lcarstensen
Created April 12, 2014 01:23
Show Gist options
  • Save lcarstensen/10513578 to your computer and use it in GitHub Desktop.
Save lcarstensen/10513578 to your computer and use it in GitHub Desktop.
Simple "docker rm" stability test
#!/bin/bash
for i in {1..100}; do
( docker run -d --name $i cirros sleep 3600 ) &
done
for i in {1..100}; do
( sleep $((RANDOM%120+60)) ; docker rm -f $i ) &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment