Docker on Raspberrypi
After a lot of trial and error, including reinstalling Pi OS Lite, multiple times, here is how I succesfully installed Docker and Miniflux (RSS feed).
I’m using a RaspberryPi 5, I’ve just installed a fresh version of Raspberry Pi OS Lite (64-bit), and I’ve updated and upgraded.
Docker
- Install docker
curl -sSL https://get.docker.com | sh
- Add your user to the docker group (to properly interact with docker)
sudo usermod -aG docker $USER
Then reboot and thereafter check if you successfully added yourself to the docker group with the groups command. If docker is mentioned in the output, you did it successfully and should now be ready to use docker.
You can test with the command: docker run hello-world
Miniflux
- Create a new file called “docker-compose.yml” , without the quotation marks.
touch docker-compose.yml
- Edit “docker-compose.yml”
nvim docker-compose.yml
nvim, stands for neovim and is a text editor, you can use nano or whichever text editor you prefer.
-
Copy the docker compose example from https://miniflux.app/docs/docker.html into the docker-compose.yml file. Edit the values as you see fit, or you can test if it works as is.
-
When ready to make the Miniflux and Postgres (included in the docker compose example) containers, use the following command
docker compose up
This will use the docker-compose.yml file in the working directory of the terminal.
The following commands were useful when I had tried to create containers that didn’t work as intended and I found out I needed to remove leftover volumes.
docker volume ls - list volumes.
docker volume rm <Volume Name> - delete volume.
docker compose down - stop a docker compose process.