Last active
May 5, 2019 23:30
-
-
Save katopz/a2581cde1470aebfb0d00f89bcd0e56a to your computer and use it in GitHub Desktop.
How to create DigitalOcean's droplet with docker-machine
This file contains hidden or 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
# 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