Skip to content

Instantly share code, notes, and snippets.

@jmaitrehenry
Last active April 23, 2017 01:39
Show Gist options
  • Save jmaitrehenry/131d541b5a7ca437ea08776d20ceb60d to your computer and use it in GitHub Desktop.
Save jmaitrehenry/131d541b5a7ca437ea08776d20ceb60d to your computer and use it in GitHub Desktop.
#!/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