Install Docker, and supporting software, on the RPi 4 to let us easily manager containers without having to learn too much about using Docker.
Docker is a way to install and operate numerous services like WordPress, Pi Hole, NextCloud as modules (called “images”) on a RPi. The advantages is that (i) less effort to install the image than it would be to download, configure and maintain the same software independently and (ii) a problem with one service is not likely to affect other services. There is supposedly little additional drain on the RPi, however you have to learn how to use it. There is also a security risk because any person can create images with intentional or accidental vulnerabilities, so it is recommended to only use official images.
In this recipe, we will use DockStarter, which is an app that will help install Docker and manage the containers.
- Raspberry Pi 4 with at least 4mb, modified to run a 64bit operating system, for example as explained here.
- Wired Ethernet connection to the router
- Internet access
- Attached USB storage device mounted at /mnt/nas
Links to all good prices on hardware can be found on my referral and buyers guide page.
- sudo apt-get install curl git
- bash -c “$(curl -fsSL https://get.docker.com)”
- bash -c “$(curl -fsSL https://get.dockstarter.com)”