#!/bin/bash
set -e

HOST_IP=$1
docker run --name $HOSTNAME -p 9999:2375 -d swarm \
    manage \
    consul://${HOST_IP}:8500/demo01

#!/bin/bash
set -e

HOST_IP=$1
docker run --name swarm -p 9999:2375 -d swarm \
    manage \
    consul://${HOST_IP}:8500

Change container name and consul key
Change container name and consul key
