Docker Volume Plugin for accessing Hetzner Cloud Volumes
5.8K
This plugin manages docker volumes using Hetzner Cloud's volumes.
This plugin is still in ALPHA; use at your own risk
To install the plugin, run the following command:
$ docker plugin install --alias hetzner costela/docker-volume-hetzner
When using docker swarm, this should be done on all nodes in the cluster.
Important: the plugin expects the docker node's hostname to match with the name of the server created
on Hetzner Cloud. This should usually be the case, unless explicitly changed.
During installation, you will be prompted to accept the plugins's privilege requirements. The following are required:
mountThe plugin is used by setting the driver option on the docker volume definition (assuming the alias passed during
installation above):
volumes:
somevolume:
driver: hetzner
This will:
fstype; see below)The following options can be passed to the plugin via docker plugin set (all names case-sensitive):
apikey (required): authentication token to use when accessing the Hetzner Cloud APIlocation (required): location in which to create volumes (see also "limitations" below)size (optional): size of the volume in GB (default: 10)fstype (optional): filesystem type to be created on new volumes. Currently supported values are ext{2,3,4} and xfs (default: ext4)prefix (optional): prefix to use when naming created volumes (default: docker)loglevel (optional): the amount of information that will be output by the plugin. Accepts any value supported by logrus (default: warn)Additionally, location, size and fstype can also be passed as options to the driver:
volumes:
somevolume:
driver: hetzner
driver_opts:
location: nbg1
size: '42'
fstype: xfs
size
option is currently ignored. This may be worked around in a future release.Content type
Plugin
Digest
sha256:c1681bd51…
Size
13.7 MB
Last updated
almost 4 years ago
docker plugin install costela/docker-volume-hetzner