Updated My Journal (2019W28)

This week was wasted with pi-zero-cluster & docker. I got most of the required hardware, but there’s issues with the official software. Installation didn’t go as planned and ended in failure, but if you’re interested do read more!

Installation of node#1.

Installation was a breeze with makerlife’s getting started kit. It even came with a breadboard, few wires and LEDs for creating physical programs. My usage wont have any need for those so back to the box they go.

  • 2/3 Raspberry Pi W
  • 0/1 Powersource
  • 1/3 MicroSD cards

In addition to the base installation, I activated ssh and made the zero to boot to CLI. Hopefully I get some extra performance this way.

Now there are few issues that I’m not sure yet.
1. The device receives its IP from a DHCP, so it’s dynamic. Should it be fixed instead? If so, and I change my router, how can I access it then?
2. At the moment I can only power one device at a time with USB. This needs to change.

A box of raspberry.
Tiny computer, huge monitor

Day 1: Installing Docker

pi@Enigma-1:~ $ curl -sSL https://get.docker.com | sh
Executing docker install script, commit: 2f4ae48
sudo -E sh -c apt-get update -qq >/dev/null
 E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'

*sigh* here we go again. First command and I already get errors. Internet says that the following command fixes it.

sudo apt-get update --allow-releaseinfo-change
Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]               
Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:4 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.7 kB]                                                                                                                       
Fetched 13.1 MB in 42s (311 kB/s)                                                                                                                                                                            
Reading package lists… Done
N: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'

Ok, nice. Let’s try again!

pi@Enigma-1:~ $ curl -sSL https://get.docker.com | sh
Executing docker install script, commit: 2f4ae48
sudo -E sh -c apt-get update -qq >/dev/null
sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
sudo -E sh -c curl -fsSL "https://download.docker.com/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
 Warning: apt-key output should not be parsed (stdout is not a terminal)
sudo -E sh -c echo "deb [arch=armhf] https://download.docker.com/linux/raspbian 10 stable" > /etc/apt/sources.list.d/docker.list
sudo -E sh -c apt-get update -qq >/dev/null
E: The repository 'https://download.docker.com/linux/raspbian 10 Release' does not have a Release file.

*sigh* well of course it doesn’t have a release file. It wouldn’t be easy install if it did. Using leonhess‘ workaround…

Errors were encountered while processing:
aufs-dkms

… Well time to upgrade system.

pi@Enigma-1:~ $ docker --version
Docker version 18.09.0, build 4d60db4

So it works? I still get aufs-dkms errors. I hope it’s not a huge problem.

pi@Enigma-1:~ $ docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Nope, it doen’t work. It seems that many people have this isssue. Removed previous install, purged aufs-dkms and issued the following command:

sudo apt install --no-install-recommends docker-ce docker-ce-cli containerd.io

Nope. And that’s it for now. The issue linked above shows that the solutions I tried might have been for RPi3 and might fail on my RPi0. So the next thing to try is to get a specific version that is proven to work and stick to that or wait for official release.

Day 2: Maybe it’s different this time

I purged the previous install and installed older version instead:

sudo dpkg -i docker-ce_18.06.1~ce~3-0~raspbian_armhf.deb

This version returned some values with: “docker info”, but trying to run hello-world…

pi@Enigma-1:~ $ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1eda109e4da: Pull complete 
Digest:  sha256:41a65640635299bab090f783209c1e3a3f11934cf7756b09cb2f1e02147c6ed8
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: unable to find "net_prio" in controller set: unknown.

And at this point the forum replies were:

  • Install older version of systemd
  • Compile the kernel with a special flag

… no.

Day 3: It’s not different at all?

The mailman brought me some parts for this project.

  • 3rd RasPi0w
  • 2x 16G MicroSD -cards
  • pHAT for the GPIO
  • Ex1: A friend 3d-printed second case.
  • Ex2: I got Bloodstained for the PS4
So nice, would be nicer if things worked.

I have most of the hardware I need, but since there are issues with the official docker and the latest version of raspian. I’ll leave this project on-hold while they fix their soft.

And uhm, In the meantime I’ll play some Igavania!