Skip to content

Commit 2e9e187

Browse files
committed
Update ZERO.md
1 parent 9634ca9 commit 2e9e187

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

ZERO.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Please **Star** the docker-arm repository to show your support. For questions se
66

77
**Overview**
88

9-
With the release of the 5 dollar PI Zero computer, there has never been a better time to start building a Docker Swarm. Whether you want to try distributed computing or just build something cool with your PI Zeros.
9+
With the release of the 5 dollar [Raspberry Pi Zero computer](https://shop.pimoroni.com/collections/raspberry-pi/products/raspberry-pi-zero), there has never been a better time to start building a Docker Swarm. Whether you want to try distributed computing or just build something cool with your Pi Zeros.
1010

11-
In this quick-start guide we will configure Arch Linux ARM, install Docker and then use a laptop or another PC to create a swarm which all our PI Zeros can join. There are several ways of doing this, but we'll keep things simple and give you the opportunity to take it further later on. I've provided some sample images for Node.js, Redis, Ruby and Python so once you're up and running it's over to you to create something awesome.
11+
In this quick-start guide we will configure Arch Linux ARM or Raspbian, install Docker and then use a laptop or another PC to create a swarm which all our Pi Zeros can join. There are [several ways](https://docs.docker.com/swarm/discovery/) of doing this (called swarm discovery), but we'll keep things simple with a hard-coded list of swarm agents. You can take it further later on through the [Swarm Discovery documentation](https://docs.docker.com/swarm/discovery/). I've provided some [sample images](https://github.com/alexellis/docker-arm/tree/master/images/armv6) for Node.js, Redis, Ruby and Python so once you're up and running it's over to you to create something awesome.
1212

1313
* Install & configure Arch Linux ARM
1414
* Install Docker
@@ -279,27 +279,38 @@ ADD ./main.rb ./
279279
CMD ["ruby", "main.rb"]
280280
```
281281

282+
Let's start the Ruby application, the swarm manager will find a suitable agent and start executing it.
283+
282284
```
283285
$ docker build -t ruby_hello_world:v6 .
284-
$ docker run ruby_hello_world:v6
286+
$ docker run --name ruby_hello_1 ruby_hello_world:v6
285287
Hello Ruby!
286288
```
287289

290+
Now if you want to find out more information about the container that was started use `docker inspect` and the name of the container which we specified:
291+
292+
```
293+
$ docker inspect ruby_hello_1
294+
```
295+
296+
288297
**Spreading images between the Swarm**
289298

290-
The easiest way to spread your images between the Swarm is to push them to the Docker Hub with `docker push` then log into each PI and use `docker pull` to bring it into the local library. If you build an image pointing at the swarm manager then the manager will pick a random PI Zero to do the build.
299+
The easiest way to spread your images between the Swarm is to push them to the Docker Hub with `docker push` then log into each PI and use `docker pull` to bring it into the local library. If you build an image pointing at the swarm manager then the manager will pick a random Pi Zero to do the build.
291300

292-
The alternative method is to log into each PI and build the image from source as we did above.
301+
The alternative method is to log into each Pi and build the image from source as we did above.
293302

294303
### Wrapping up
295304

296305
This is the end of the quick-start tutorial. You now have a fully working PI Zero Swarm and are ready to start exploring images built specifically for ARM. Please see the repository `docker-arm` over at Github for compatible ARMv6 images:
297306

298307
[alexellis's ARMv6 Images](https://github.com/alexellis/docker-arm/tree/master/images/armv6)
299308

309+
Questions? Send me a message on the blog or through Twitter at @alexellisuk.
310+
300311
### See also:
301312

302-
Additional instructions are available for the Raspberry PI 2/3, including how to set up a Swarm using *Consul* for discovery instead of using the hard-coded `nodes://` method.
313+
Additional instructions are available for the Raspberry Pi 2/3, including how to set up a Swarm using *Consul* for discovery instead of using the hard-coded `nodes://` method.
303314

304315
[Docker for Raspberry PI tutorial](http://blog.alexellis.io/linux-user-developer-magazine/)
305316

0 commit comments

Comments
 (0)