>How to Set Up Docker on a Raspberry Pi

Downloading Docker Engine

As always, it is important to make sure your system is up to date before installing and running convenience script:

sudo apt-get update && sudo apt-get upgrade

The Docker Engine convenience script can be easily installed by using the curl command below:

curl -fsSL https://get.docker.com -o get-docker.sh

You can use the ‘ls’ command to verify that the ‘get-docker.sh’ file successfully retrieved.
Run the convenience script:

sudo sh get-docker.sh

Downloading Docker Containers from Docker Hub

In this small home lab, I will be pulling three Docker images from the Docker Hub: Kali, Ubuntu, and Nginx. The Kali container will act as an attacker in this scenario, while Ubuntu will be the receiving end. Nginx will serve as a reverse proxy to reroute fraudulent activity between the two machines.
The images can be obtained by using the docker pull commands found on the Docker Hub website. Create an account and use the command ‘docker login’ to login to your account.

Use ‘docker run hello-world’ to verify that the docker engine is running properly and then use ‘docker images’ to see your Docker images.

Leave a Comment