Required Hardware

  • Raspberry Pi - link
  • MicroSD Card - link
  • MicroSD Card USB Adapter - link
  • Ethernet Cable

 

Required Software

 

Definitions

  • Image - One file that contains the contents and structure of an entire disk. Typically it's a bit for bit copy of an installation CD or a backup of a hard drive. These Image files can be recognized by the file extension .iso or .img.
  • File Extension - the last three characters found after a file name. These are used for recognition and program association. Typically pictures are .jpg or .png, text based files are .doc, .rtf, or .txt, while programs (executables) have the extension .exe, or .app.
  • Raspberry Pi - A low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python.

 

Instructions

Since we're going to be creating a 'headless' server (meaning no monitor), we will only require ethernet cables for network and MicroUSB for power (USB-C for Raspberry Pi 4).


Follow instructions on "How to: Write .img files to MicroUSB" while using the Raspian Lite image linked above.

Create a new file called "ssh" with no extension at the root of the newly created MicroSD card image - this will let us remotely connect to the device.

Plug in ethernet cable and USB power to Raspberry Pi.

Open Terminal - one is built into OS X and Linux, while Windows 10 requires additional software.

Type the following to determine the IP address of the Pi - mine is listed below as raspberrypi.lan and it's IP address looks something like "192.168.1.100"
arp -a

Type "ssh", the user "[email protected]", then the IP address of your Pi
Example: ssh [email protected]

The password is:
raspberry

Type the following and follow the prompts:
passwd

Type the following and wait for it to finish:
curl -sSL https://get.docker.com | sh

That's it! Docker is now installed on your Raspberry Pi!

 

Optional

Type the following to upgrade your system with the newest security patches and software:
sudo apt-get update && sudo apt-get upgrade -y

Install Portainer for a handy Docker UI, by typing the following:
docker volume create portainer_data
Then:
docker run -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer