Open a Terminal
On each Pi, open a terminal window: press Ctrl + Alt + T
Run the Convenience Script
Install Docker (run on every node)
$ sudo curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
The script will automatically detect your OS (Raspbian/Debian), add Docker's apt repository and install the Docker Engine. The process takes a few minutes per node.
Add Your User to the Docker Group
To run Docker commands without sudo, add your user to the docker group:
Add user to docker group (run on every node)
$ sudo usermod -aG docker $USER
Log out and back in for the change to take effect.
Security note: Members of the
docker group can obtain root privileges via Docker containers. Only add trusted users. See the Docker security documentation for details.
Verify the Installation
Verify Docker version
$ docker version
Client: Docker Engine - Community
Version: 27.x.x
OS/Arch: linux/arm64
...
Server: Docker Engine - Community
Engine:
Version: 27.x.x
OS/Arch: linux/arm64
...
Repeat on All Nodes
You must install Docker on all four nodes — MASTER, SLAVE1, SLAVE2 and SLAVE3. Connect to each via VNC or SSH and run the same two commands.
Official installation reference: docs.docker.com — Install using the convenience script