This episode will consist of a quick aside to build a Docker Registry Mirror. Previous: Part 1 Why Do We Need a Mirror?? The Docker Registry is, to my mind, one of the greatest contributors to the rapid growth of Docker. Having a central location for images encourages sharing and re-use. Obviously some images are …
Category Archive: Docker
Mar 23
Shrinking Docker Images
Size does matter. Docker images can become quite large as each RUN generates a new layer which becomes part of the image, even if it’s not in the final container. This wastes disk space and network bandwidth. The following are some steps for shrinking the size of a docker container in which builds have been …
Mar 22
Registrator for Pi: /gliderlabs/registrator ported to Pi
I’ve made a port of gliderlabs/registrator to the raspberry pi. The repository for the Pi port is at: nimblestratus/registrator. At first glance, the part I find most interesting is the size of the resulting image — ~12M. I firmly believe it’s a direct result of starting from Alpine Linux. This will definitely warrant further investigation. …
Mar 22
Consul for Raspberry Pi is Alive
This version is forked from http://github.com/progrium/docker-consul and runs on the Raspberry Pi. Thanks to Jeff Lindsay for all his hard work. I am merely standing on the shoulders of giants. This initial version is a bit largish — ~500Mb; I think it’s mostly due to needing a go build environment. I think I can use …
Mar 22
Docker Cleanup
After a time, Docker containers and images build up and can eat disk space. Failed docker build invocations can leave a lot of artifacts behind. The following commands can help. Many of them say ‘not all containers could be removed’; this has to do with the header from docker ps. Usually this can be ignored. …
Mar 21
Swarming Raspberry Pi – Part 1
Here’s the first in a series of building a robust docker swarm of raspberry pi hosts. This installment goes through installing the Pi(s), modifiying the Docker Daemon config, and starting up a test to verify that everyone can join the cluster. The cluster which I am using consists of Raspberry Pi B+ x 5 Raspberry …
Mar 10
Raspberry Pi Swarm Pushed to Unsuspecting Docker Hub
I’ve pushed nimblestratus/rpi-swarm to the Docker Hub. It was pretty easy to port — basically stock Swarm, with Dockerfile changes needed for the Pi. Thanks to hypriot for the hypriot/rpi-golang container which I used as a base. One caveat…. only containers which are created for the Pi will be able to run on the Raspberry …
Mar 06
Cloudy with a chance of Raspberries
I have been experimenting with Raspberry Pi computers with the intent of having a small cloud that I can take with me to talks. Plusses: I can have a good sized cluster in a small volume. Low power draw (6W or less per computer) With the release of the Pi 2, distribution based upon available …
Dec 18
Using Docker Registry with Riak-CS
Intro As a proof of concept, this uses the docker hectcastro/riak-cs container to create the riak-cs cluster. Some flavour of linux with a recent Docker version is assumed. Riak-CS Pull the github repository; it has a Makefile and scripts to bring up the cluster and test it. It can set up a haproxy container in …
Sep 28
Go executables are statically linked, except when they are not.
Generally GO executables are advertised as statically linked.
And they are, mostly, except for those times where they aren’t.
This is about one of those times, and what I discovered in the process.