Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 413 Bytes

digital_ocean.md

File metadata and controls

14 lines (12 loc) · 413 Bytes

Digital Ocean

# create a reserved IP address
doctl compute fip create --region nyc1

# get list of public images
doctl compute image list --public --output json \
  | jq -j '.[] | select(.type == "base") | .distribution," ",.name,"\t",.slug,"\t",.id,"\n"' \
  | sort \
  | fzf --with-nth 1 -d "\t" \
  | awk -F '\t' '{print $3}' \
  | xargs -I {} doctl compute image get {} --format Slug --no-header