Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/bin/sh | |
machine_names=( $(docker-machine ls | awk '{print $1}') ) | |
echo $1 | |
case "$1" in | |
start) | |
echo "Starting docker machines $1" | |
for (( i=0; i<${#machine_names[@]}; i++ )); do | |
echo ${machine_names[i]}; | |
docker-machine start ${machine_names[i]} |
#!/usr/bin/env bash | |
for i in 1 2 3 4; do | |
docker-machine create -d virtualbox --virtualbox-cpu-count 2 --virtualbox-memory 1024 local-moitrack-swarm-$i | |
done | |
eval $(docker-machine env local-moitrack-swarm-1) | |
docker swarm init --advertise-addr $(docker-machine ip local-moitrack-swarm-1) |