Skip to content

Instantly share code, notes, and snippets.

@dqminh
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dqminh/9287a706a13017c835b7 to your computer and use it in GitHub Desktop.
Save dqminh/9287a706a13017c835b7 to your computer and use it in GitHub Desktop.
#!/bin/bash
docker run -d --name test-port -p 8000:8000 busybox sh -c "while true; do echo 'hello world'; done"
for i in {1..100}; do
echo "restart $i"
docker restart test-port
done
@dqminh
Copy link
Author

dqminh commented Aug 26, 2014

❯ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
❯ ps aux | grep docker-proxy
root     24425  0.0  0.2 196528  4720 ?        Sl   11:16   0:00 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8000 -container-ip 172.17.0.3 -container-port 8000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment