Skip to content

Instantly share code, notes, and snippets.

@jnoller
Last active March 10, 2016 18:35
Show Gist options
  • Save jnoller/b8a766c2460e39910360 to your computer and use it in GitHub Desktop.
Save jnoller/b8a766c2460e39910360 to your computer and use it in GitHub Desktop.
#!/bin/sh
carina create --wait ucp
carina credentials ucp
eval "$(carina env ucp)"
UCP_ADMIN_USER='admin'
read -s -p "Enter your password and press [ENTER]: ": password
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \
-e UCP_ADMIN_USER=$UCP_ADMIN_USER -e UCP_ADMIN_PASSWORD=$password \
--name ucp docker/ucp install --swarm-port 2377 --fresh-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment