DEV Community

Discussion on: Installing Docker and Docker Compose on the Raspberry Pi in 5 Simple Steps

Collapse
 
wmbell65 profile image
William Bell

Hi everyone,
I managed to get things sort of sorted out:
1) I ran 'sudo apt-get remove docker*' on all nodes.
2) I then removed /etc/docker /var/lib/docker /etc/init.d/docker /run/docker on each node.
3) I ran 'sudo apt-get clean' on all nodes
4) rebooted all nodes

Starting from scratch I downloaded the get-docker.sh and copied it to each node and ran the following:
sudo sh get-docker.sh
sudo usermod -aG docker pi
sudo systemctl start docker.service
sudo systemctl enable docker.service
docker info
docker run hello-world

The next step was to run 'docker init swarm' on one of the nodes to create the manager node. This looks to have completed properly as I got 'swarm initialized....'

At this point, the responsiveness of the node fell through the floor.. top shows CPU 98% idle but keystrokes etc are delayed by 30-40 seconds. I am thinking maybe memory?? but am not sure what the next step would be after this...

Collapse
 
pachangadad profile image
Birger Luecht

Thanks for the outline of step by step commands. This worked for me also on RPI3

Thread Thread
 
wmbell65 profile image
William Bell

As an FYI.. the whole issue of the master node hanging went away when I switched from Raspberry Pi OS to Ubuntu 20 server.. I even managed to get kubernetes installed..
What made this interesting was that the master is a Pi 3b with an ARM7 V4 while the rest are Pi 2B+ with ARM7 v5..

Collapse
 
robertbernstein profile image
Robert Bernstein

Thank you, @william bell! That did the trick!

Thread Thread
 
robertbernstein profile image
Robert Bernstein

I may have spoken to soon. It finished running sudo sh get-docker.sh, which it hadn't before, but it still fails to start Docker Application Container Engine.

Thread Thread
 
wmbell65 profile image
William Bell

I switched over to Ubuntu and not only did Docker install, I got Kubernetes installed and working as well.. I had to try a couple of minor things, but mostly missing packages