Skip to content
Docker Machine CloudSigma Driver
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
api
cmd
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
Gopkg.lock
Gopkg.toml
LICENSE
Magefile.go
README.md
cloudsigma.go
cloudsigma_test.go

README.md

Docker Machine CloudSigma Driver

Create Docker machines on CloudSigma.

You need to use your e-mail address as username and password and pass that to docker-machine create with --cloudsigma-username and --cloudsigma-password options.

Usage

$ docker-machine create --driver cloudsigma \
    --cloudsigma-username <YOUR-EMAIL> \
    --cloudsigma-password <YOUR-PASSWORD> \
    MY_COMPUTE_INSTANCE

If you encounter any troubles, activate the debug mode with docker-machine --debug create ....

When explicitly passing environment variables

$ export CLOUDSIGMA_USERNAME=<YOUR-EMAIL>; export CLOUDSIGMA_PASSWORD=<YOUR-PASSWORD>
$ docker-machine create --driver cloudsigma MY_COMPUTE_INSTANCE

Options

  • --cloudsigma-api-location: CloudSigma API location endpoint code.
  • --cloudsigma-cpu: CPU clock speed for the host in MHz.
  • --cloudsigma-cpu-type: CPU type
  • --cloudsigma-cpu-epc-size: Enclave Page Cache (EPC) size.
  • --cloudsigma-drive-size: Drive size for the host in GiB.
  • --cloudsigma-drive-uuid: CloudSigma drive uuid.
  • --cloudsigma-memory: Size of memory for the host in MB.
  • --cloudsigma-password: required Your CloudSigma password.
  • --cloudsigma-ssh-port: SSH port to connect.
  • --cloudsigma-ssh-user: SSH username to connect.
  • --cloudsigma-static-ip: CloudSigma network adapter’s static IP address.
  • --cloudsigma-username: required Your CloudSigma user email.

Environment variables and default values

CLI option Environment variable Default
--cloudsigma-api-location CLOUDSIGMA_API_LOCATION zrh
--cloudsigma-cpu CLOUDSIGMA_CPU 2000
--cloudsigma-cpu-type CLOUDSIGMA_CPU_TYPE intel
--cloudsigma-cpu-epc-size CLOUDSIGMA_CPU_EPC_SIZE -
--cloudsigma-drive-size CLOUDSIGMA_DRIVE_SIZE 20
--cloudsigma-drive-uuid CLOUDSIGMA_DRIVE_UUID 6fe24a6b-b5c5-40ba-8860-771044d2500d
--cloudsigma-memory CLOUDSIGMA_MEMORY 1024
--cloudsigma-password CLOUDSIGMA_PASSWORD -
--cloudsigma-ssh-port CLOUDSIGMA_SSH_PORT 22
--cloudsigma-ssh-user CLOUDSIGMA_SSH_USER cloudsigma
--cloudsigma-static-ip CLOUDSIGMA_STATIC_IP -
--cloudsigma-username CLOUDSIGMA_USERNAME -

Frequently Asked Questions

I get error after restarting the docker machine

If you do not use --cloudsigma-static-ip option, then your machine will become always a new IP address after restarting. You will see something like that by running docker-machine ls command:

$ docker-machine ls
NAME   ACTIVE  DRIVER      STATE    URL                   SWARM    DOCKER    ERRORS
my vm  -       cloudsigma  Running  tcp://185.x.x.x:2376  Unknown  Unable to query docker version: Get https://185.x.x.x:2376/v1.15/version: x509: certificate is valid for 31.x.x.x, not 185.x.x.x

In this case you should regenerate certificates with docker-machine regenerate-certs.

Contributing

We hope you'll get involved! Read our Contributors' Guide for details.

You can’t perform that action at this time.