DEV Community

Zach Koch
Zach Koch Subscriber

Posted on • Edited on

10

Install Docker Engine on Raspberry Pi OS (64-bit)

This was tested on a Raspberry Pi 5 with a fresh install of Pi OS 64-bit bookworm.

These instructions are available on the official site, but they are somewhat hidden away.

If you want to skip reading the instructions I have made a script that you can run directly from the terminal of your Pi

sudo curl -sL https://raw.githubusercontent.com/ezekeal/scripts/main/docker-pi.sh | bash
Enter fullscreen mode Exit fullscreen mode

Add GPG Keys

you will get no output from these commands

sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
Enter fullscreen mode Exit fullscreen mode

Add the Docker repositories

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Enter fullscreen mode Exit fullscreen mode

this will also have no output

now update

sudo apt-get update
Enter fullscreen mode Exit fullscreen mode

You should see a line with https://download.docker.com/linux/debian if the previous steps were completed correctly

Install the Docker packages

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Enter fullscreen mode Exit fullscreen mode

Test your installation

sudo docker run hello-world
Enter fullscreen mode Exit fullscreen mode

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay