Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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