Skip to content

Instantly share code, notes, and snippets.

@mjclemente
mjclemente / create-docker-servers-doctl.sh
Last active March 19, 2021 15:30
Create Docker Hosts on DigitalOcean with doctl
#!/bin/bash
#For more details, see: https://blog.mattclemente.com/2019/03/04/script-docker-host-creation-digitalocean-doctl.html
DO_DROPLET_NAME=docker-node
DO_SIZE=s-1vcpu-1gb
DO_REGION=nyc1
DO_SSH_IDS=$(doctl compute ssh-key list --no-header --format ID)
DO_TAGS=demotag
DO_DROPLET_COUNT=3