Created
April 12, 2014 01:23
-
-
Save lcarstensen/10513578 to your computer and use it in GitHub Desktop.
Simple "docker rm" stability test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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