- Download 64bit RPI OS lite from here
- Flash it to the pi's SD card (RPI Imager)
- Make sure SSH is on (you can turn SSH on during installation with RPI Imager, just hit Ctrl + Shift + X)
- SSH into the pi (Default username:
pi
and default password:raspberry
)
Install Docker:
$ sudo apt update
$ sudo apt install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt update
$ sudo apt install docker-ce docker-ce-cli containerd.io
Install Compose:
$ sudo curl -L "https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/libexec/docker/cli-plugins/docker-compose
&& sudo chmod +x /usr/libexec/docker/cli-plugins/docker-compose
Ur mom