Skip to content

isabella232/docker-machine-driver-spotinst

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Machine Driver of Spotinst

Create instances on Spotinst using Docker-Machine.

docker-machine create -d spotinst

Requirements

For Docker-Machine to connect to Spotinst Elastigroup You will need:

  • Spotinst Account
  • Spotinst Token
  • Elastigroup with:
    • Docker-Machine Supported OS AMI (Amazon-Linux isn't supported by Docker-Machine)
    • Security Group with inbound SSH (22) and Docker-Machine (2376) ports open
  • All required parameters from the Options section fulfilled

creates docker instances on Spotinst Elastigroup

Installation

Please see latest version of the driver with instructions how to install in: Releases

Options

docker-machine create -d spotinst --help
Option Name Description required
--spotinst-account Spotint Account ID yes
--spotinst-elastigroup-id ElastGroup ID in the relevant account to fill in servers yes
--spotinst-token Spotinst Token from you organization yes
--spotinst-sshkey-path Local path to the pem file of the Elastigroup yes
--use-public-ip Boolean flag (means do not get any value) that determines if to use public IP or private IP No
--ssh-user Username for server SSH connection using the pem No

Examples

The following example creates a server called dev on Spotinst Elastigroup

docker-machine create -d spotinst --spotinst-account "act-12345" --spotinst-elastigroup-id "sig-12345" --spotinst-token "<Token>" --spotinst-sshkey-path "/home/ubuntu/pems/myssh.pem" --use-public-ip dev

To get debug message use the following example

docker-machine --debug create -d spotinst --spotinst-account "act-12345" --spotinst-elastigroup-id "sig-12345" --spotinst-token "<Token>" --spotinst-sshkey-path "/home/ubuntu/pems/myssh.pem" --use-public-ip dev

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.3%
  • Shell 4.7%