Skip to content

Instantly share code, notes, and snippets.

@piffall
Created July 2, 2017 10:35
Show Gist options
  • Save piffall/2dcf65af29dd2e0cd9f3ff84c939415f to your computer and use it in GitHub Desktop.
Save piffall/2dcf65af29dd2e0cd9f3ff84c939415f to your computer and use it in GitHub Desktop.
Provision docker on generic host
#!/bin/bash
if [[ $# -ne 2 ]]; then
echo "Usage: docker-machine-add-generic.sh [HOST] [NAME]"
fi
docker-machine create -d generic --generic-ssh-user root --generic-ssh-key ${HOME}/.ssh/id_rsa --generic-ip-address $1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment