Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (14 sloc) 319 Bytes
#!/bin/bash
set -e
DOCKER_IMAGE="hypriot/rpi-busybox-httpd"
P1=$1
P2=$2
MAXNR=${P1:="1"}
STARTNR=${P2:="0"}
COUNTER=$STARTNR
while [ $COUNTER -lt $MAXNR ]; do
let COUNTER=COUNTER+1
let PORT=10000+COUNTER
echo COUNTER=$COUNTER, PORT=$PORT
docker run -d --name=WebServer-$PORT -p $PORT:80 $DOCKER_IMAGE
done