Skip to content

Instantly share code, notes, and snippets.

@leanderjanssen
Created March 22, 2018 04:40
Show Gist options
  • Save leanderjanssen/d72d33a6f116838353eac7cc02d4a30e to your computer and use it in GitHub Desktop.
Save leanderjanssen/d72d33a6f116838353eac7cc02d4a30e to your computer and use it in GitHub Desktop.
install-ucp.sh
UCP_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4)
UCP_FQDN=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)
docker container run -it --rm --name ucp \
-v /var/run/docker.sock:/var/run/docker.sock \
docker/ucp:2.2.6 install \
--swarm-port 3376 \
--admin-username admin \
--admin-password adminadmin \
--san ${UCP_IP} \
--san ${UCP_FQDN}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment