I have a RPi Zero W (model 1 from 2017) running raspberry pi OS lite
. I like using docker for deploying stuff and the easiest way I found to setup docker for use on an underpowered machine likes this was via:
This script does literally all the work for you. It figures out you distribution and your CPU architecture to get docker up and running for you regardless of what you have.
This is a life saver, since trying to get the right version of docker for an arm32 chip is tedious.
That being said, is docker a good idea on this machine? Probably not. Its underpowered as is and docker has a non-negligible footprint on it.
Podman as an alternative might be cool, but I wasn’t able to get it to work properly for my usage.
Tips & Tricks
-
Disable swap to increase life-time of SD card:
sudo swapoff -a
. -
Change shell to fish, for quality of life.
(
exec fish
replaces current session with fish, so you don’t have to relog to restart the terminal) -
Added https://gitlab.com/jschx/ufetch as cute & simple login message.