Skip to content

Commit 4108684

Browse files
committed
Merge pull request #46 from QuentinPerez/doc-arm
Doc: add how to start a machine on ARM
2 parents bd3f6e0 + e5daf31 commit 4108684

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

README.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,56 @@ docker-machine create -d scaleway --scaleway-commercial-type="C2L"
185185

186186
More [examples](https://github.com/scaleway/docker-machine-driver-scaleway/tree/master/examples).
187187

188-
--
188+
---
189+
190+
## How to start a machine on ARM
191+
192+
To launch a machine on ARM, we need to start a server with the image docker of Scaleway and overload the install script of Docker to do nothing
193+
194+
```console
195+
$ curl -sL http://bit.ly/1sf3j8V # the install script of docker will be overloaded with that, which does nothing
196+
#!/bin/sh
197+
198+
exit 0
199+
200+
$ docker-machine create -d scaleway --scaleway-commercial-type=C1 --scaleway-image=docker --engine-install-url="http://bit.ly/1sf3j8V" arm-machine
201+
Running pre-create checks...
202+
Creating machine...
203+
(arm-machine) Creating SSH key...
204+
(arm-machine) Creating server...
205+
(arm-machine) Starting server...
206+
Waiting for machine to be running, this may take a few minutes...
207+
Detecting operating system of created instance...
208+
Waiting for SSH to be available...
209+
Detecting the provisioner...
210+
Provisioning with ubuntu(systemd)...
211+
Installing Docker...
212+
Copying certs to the local machine directory...
213+
Copying certs to the remote machine...
214+
Setting Docker configuration on the remote daemon...
215+
Checking connection to Docker...
216+
Docker is up and running!
217+
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env arm-machine
218+
219+
$ eval $(docker-machine env arm-machine) # arm-machine is now activated
220+
221+
$ docker run -it --rm multiarch/ubuntu-core:amd64-xenial # test an ARM container
222+
Unable to find image 'multiarch/ubuntu-core:armhf-xenial' locally
223+
armhf-xenial: Pulling from multiarch/ubuntu-core
224+
9d12e3a67364: Pull complete
225+
441bb0ba1886: Pull complete
226+
4d9398209a87: Pull complete
227+
89c0bb260a76: Pull complete
228+
Digest: sha256:9b01beb4cdf0e1814583113105965f6b82a2fa618f403075f5ff653ac797911b
229+
Status: Downloaded newer image for multiarch/ubuntu-core:armhf-xenial
230+
231+
root@ab197ef8bd3c:/# uname -a
232+
Linux ab197ef8bd3c 4.5.4-docker-1 #1 SMP Thu May 19 18:02:43 UTC 2016 armv7l armv7l armv7l GNU/Linux
233+
root@ab197ef8bd3c:/# exit
234+
```
235+
236+
237+
---
189238

190239
## Changelog
191240

0 commit comments

Comments
 (0)