Skip to content

Instantly share code, notes, and snippets.

@katopz
Last active May 5, 2019 23:30
Show Gist options
  • Save katopz/a2581cde1470aebfb0d00f89bcd0e56a to your computer and use it in GitHub Desktop.
Save katopz/a2581cde1470aebfb0d00f89bcd0e56a to your computer and use it in GitHub Desktop.
How to create DigitalOcean's droplet with docker-machine
# Required DIGITALOCEAN_ACCESS_TOKEN from DigitalOcean's dashboard.
# https://cloud.digitalocean.com/settings/api/tokens
#
# Required DIGITALOCEAN_SSH_KEY_FINGERPRINT
# $ ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub
#
docker-machine create \
--driver digitalocean \
--digitalocean-access-token=$DIGITALOCEAN_ACCESS_TOKEN \
--digitalocean-image ubuntu-16-04-x64 \
--digitalocean-size 512mb \
--digitalocean-ipv6 \
--digitalocean-private-networking \
--digitalocean-region nyc3 \
--digitalocean-ssh-key-fingerprint $DIGITALOCEAN_SSH_KEY_FINGERPRINT \
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment