You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Implement support for image architecture (fixes#105, thanks @Knight1)
- switch to non-deprecated architecture-aware image lookup
- use server type architecture by default
- add --hetzner-image-arch for explicit setting
- minor refactoring
$ tar -xvf docker-machine-driver-hetzner_3.13.0_linux_amd64.tar.gz
20
20
21
21
# Make it executable and copy the binary in a directory accessible with your $PATH
22
22
$ chmod +x docker-machine-driver-hetzner
@@ -91,7 +91,8 @@ $ docker-machine create \
91
91
## Options
92
92
93
93
-`--hetzner-api-token`: **required**. Your project-specific access token for the Hetzner Cloud API.
94
-
-`--hetzner-image`: The name of the Hetzner Cloud image to use, see [Images API](https://docs.hetzner.cloud/#resources-images-get) for how to get a list (defaults to `ubuntu-18.04`).
94
+
-`--hetzner-image`: The name (or ID) of the Hetzner Cloud image to use, see [Images API](https://docs.hetzner.cloud/#resources-images-get) for how to get a list (defaults to `ubuntu-18.04`).
95
+
-`--hetzner-image`: The architecture to use during image lookup, inferred from the server type if not explicitly given.
95
96
-`--hetzner-image-id`: The id of the Hetzner cloud image (or snapshot) to use, see [Images API](https://docs.hetzner.cloud/#resources-images-get) for how to get a list (mutually excludes `--hetzner-image`).
96
97
-`--hetzner-server-type`: The type of the Hetzner Cloud server, see [Server Types API](https://docs.hetzner.cloud/#resources-server-types-get) for how to get a list (defaults to `cx11`).
97
98
-`--hetzner-server-location`: The location to create the server in, see [Locations API](https://docs.hetzner.cloud/#resources-locations-get) for how to get a list.
@@ -115,6 +116,15 @@ $ docker-machine create \
115
116
-`--hetzner-primary-ipv4/6`: Sets an existing primary IP (v4 or v6 respectively) for the server, as documented in [Networking](#networking)
116
117
-`--hetzner-wait-on-error`: Amount of seconds to wait on server creation failure (0/no wait by default)
117
118
119
+
#### Image selection
120
+
121
+
When `--hetzner-image-id` is passed, it will be used for lookup by ID as-is. No additional validation is performed, and it is mutually exclusive with
122
+
other `--hetzner-image*`-flags.
123
+
124
+
When `--hetzner-image` is passed, lookup will happen either by name or by ID as per Hetzner-supplied logic. The lookup mechanism will filter by image
125
+
architecture, which is usually inferred from the server type. One may explicitly specify it using `--hetzner-image-arch` in which case the user
126
+
supplied value will take precedence.
127
+
118
128
#### Existing SSH keys
119
129
120
130
When you specify the `--hetzner-existing-key-path` option, the driver will attempt to copy `(specified file name)`
0 commit comments