Last active
March 26, 2017 16:28
-
-
Save chusiang/692fb01f58b5a0ad22b77eb8ccff221b to your computer and use it in GitHub Desktop.
Batch run multiple docker containers.
This file contains hidden or 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 | |
# ============================================================ | |
# Author: Chu-Siang Lai / chusiang (at) drx.tw | |
# Blog: http://note.drx.tw | |
# Filename: bat-run-docker.sh | |
# Modified: 2017-03-27 00:25 | |
# Description: Batch run multiple docker containers. | |
# ============================================================ | |
for X in {1..31}; do | |
docker run -P -d chusiang/ansible-jupyter:ubuntu-14.04 | |
docker run -P -d chusiang/ansible-managed-node:debian-8 | |
docker run -P -d chusiang/ansible-managed-node:centos-6 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a sample script for 現代 IT 人一定要知道的 Ansible 自動化組態技巧 (3/e) | 凍仁的筆記.