File tree Expand file tree Collapse file tree 1 file changed +35
-12
lines changed Expand file tree Collapse file tree 1 file changed +35
-12
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ and pass that to `docker-machine create` with the `--hetzner-api-token` option.
13
13
14
14
You can find sources and pre-compiled binaries [ here] ( https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases ) .
15
15
16
- ``` shell
16
+ ``` bash
17
17
# Download the binary (this example downloads the binary for linux amd64)
18
18
$ wget https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/1.0.0/docker-machine-driver-hetzner_1.0.0_linux_amd64.tar.gz
19
19
$ tar -xvf docker-machine-driver-hetzner_1.0.0_linux_amd64.tar.gz
@@ -25,19 +25,42 @@ $ cp docker-machine-driver-hetzner /usr/local/bin/
25
25
26
26
## Usage
27
27
28
- $ docker-machine create \
29
- --driver hetzner \
30
- --hetzner-api-token=QJhoRT38JfAUO037PWJ5Zt9iAABIxdxdh4gPqNkUGKIrUMd6I3cPIsfKozI513sy \
31
- some-machine
32
-
28
+ ``` bash
29
+ $ docker-machine create \
30
+ --driver hetzner \
31
+ --hetzner-api-token=QJhoRT38JfAUO037PWJ5Zt9iAABIxdxdh4gPqNkUGKIrUMd6I3cPIsfKozI513sy \
32
+ some-machine
33
+ ```
34
+
33
35
### Using environment variables
34
36
35
- $ HETZNER_API_TOKEN=QJhoRT38JfAUO037PWJ5Zt9iAABIxdxdh4gPqNkUGKIrUMd6I3cPIsfKozI513sy \
36
- && HETZNER_IMAGE=centos-7 \
37
- && docker-machine create \
38
- --driver hetzner \
39
- some-machine
40
-
37
+ ``` bash
38
+ $ HETZNER_API_TOKEN=QJhoRT38JfAUO037PWJ5Zt9iAABIxdxdh4gPqNkUGKIrUMd6I3cPIsfKozI513sy \
39
+ && HETZNER_IMAGE=centos-7 \
40
+ && docker-machine create \
41
+ --driver hetzner \
42
+ some-machine
43
+ ```
44
+
45
+ ### Using Cloud-init
46
+
47
+ ``` bash
48
+ $ CLOUD_INIT_USER_DATA=` cat << EOF
49
+ #cloud-config
50
+ write_files:
51
+ - path: /test.txt
52
+ content: |
53
+ Here is a line.
54
+ Another line is here.
55
+ EOF
56
+ `
57
+
58
+ $ docker-machine create \
59
+ --driver hetzner \
60
+ --hetzner-api-token=QJhoRT38JfAUO037PWJ5Zt9iAABIxdxdh4gPqNkUGKIrUMd6I3cPIsfKozI513sy \
61
+ --hetzner-user-data=" ${CLOUD_INIT_USER_DATA} " \
62
+ some-machine
63
+ ```
41
64
42
65
## Options
43
66
You can’t perform that action at this time.
0 commit comments