Last active
April 23, 2017 01:39
-
-
Save jmaitrehenry/131d541b5a7ca437ea08776d20ceb60d to your computer and use it in GitHub Desktop.
This file contains 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 | |
docker swarm init --advertise-addr eth0 | |
docker run --rm -it \ | |
--name ucp \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
docker/ucp install \ | |
--admin-username admin --admin-password password \ | |
--force-insecure-tcp --san pwd${INSTANCE_IP}-443.host3.labs.play-with-docker.com | |
docker run -it --rm docker/dtr:2.2.4 install \ | |
--ucp-insecure-tls \ | |
--ucp-node node1 \ | |
--dtr-external-url http://${INSTANCE_IP}-4443.host3.labs.play-with-docker.com \ | |
--replica-https-port 4443 \ | |
--ucp-url https://${INSTANCE_IP}-443.host3.labs.play-with-docker.com/ \ | |
--ucp-username admin \ | |
--ucp-password password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment