Docker Machine Scaleway Driver is a driver plugin for Docker machine. It allows to create Docker hosts on Scaleway servers.
Use standard Unix tools:
$ wget -O docker-machine-driver-scaleway.zip RELEASE_URL
$ unzip docker-machine-driver-scaleway.zip
$ sudo cp docker-machine-driver-scaleway /usr/bin
To use the driver, you must have an organization id and API token.
Follow these steps:
These instructions assume that docker-machine
and docker-machine-driver-scaleway
are in your PATH.
$ docker-machine --driver scaleway \
--scaleway-organization SCALEWAY_ORGANIZATION_ID \
--scaleway-token SCALEWAY_API_TOKEN \
MACHINE_NAME
P.S. Try the overlay
driver for problems with aufs
storage driver incompatibility
in the docker installation. See for details: https://docs.docker.com/machine/reference/create/#specifying-configuration-options-for-the-created-docker-engine
Load environment variables to use remote machine. This step is required to connect to the Docker Engine socket of remote machine.
$ eval $(docker-machine env MACHINE_NAME)
Run test commands
$ docker pull golang
$ docker images
Option | Description | Default | required |
---|---|---|---|
--scaleway-ssh-user |
SSH username | root |
no |
--scaleway-ssh-port |
SSH port | 22 |
no |
--scaleway-organization |
Organization id | none |
yes |
--scaleway-token |
API token | none |
yes |
--scaleway-server-name |
Server name | none |
no |
--scaleway-commercial-type |
Commercial type | VC1S |
no |
--scaleway-image |
Image | ubuntu-xenial |
no |
--scaleway-region |
Region | ams1 |
no |
--scaleway-reserved-ip-id |
Use an existing IP adress | none |
no |
--scaleway-persistent-ip |
IP persistent | false |
no |
--scaleway-enable-ipv6 |
Enable IPv6 | false |
no |
--scaleway-volumes |
Add an additional volume | none |
no |
--scaleway-tags |
Add tags | none |
no |
Requirements:
- A working Go environment (see: https://golang.org/doc/code.html)
- Golint
- Dep
Install dependencies
go get -u github.com/golang/lint/golint
go get -u github.com/golang/dep/cmd/dep
Run tests
$ make test
Run build command
$ make build
- Security groups
- User datas
The MIT License (MIT) - see LICENSE
for more details