Install Docker on Raspberry Pi 4 (via DockStarter)

Objective

Install Docker, and supporting software, on the RPi 4 to let us easily manager containers without having to learn too much about using Docker.

Intro

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.

Requirements

  • 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.

Recipe

  • sudo apt-get install curl git
  • bash -c “$(curl -fsSL https://get.docker.com)”
  • bash -c “$(curl -fsSL https://get.dockstarter.com)”

Leave a Reply

Your email address will not be published. Required fields are marked *

nineteen − nine =