- 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.
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"
The password is:
Type the following and follow the prompts:
Type the following and wait for it to finish
(or just curl -sSH http://files.mcwain.net/docker.sh | bash):
### Install Docker-CE sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" sudo apt update sudo apt install docker-ce sudo systemctl status docker #check status ### Install Docker Compose sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose --version #check version
That's it! Docker is now installed on your Raspberry Pi!
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
docker run -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer