Skip to content

Instantly share code, notes, and snippets.

@dominicsayers
Last active February 16, 2023 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominicsayers/b26a2458384e83b15d565e05cbbf7488 to your computer and use it in GitHub Desktop.
Save dominicsayers/b26a2458384e83b15d565e05cbbf7488 to your computer and use it in GitHub Desktop.
Installing docker on a Raspberry Pi running Ubuntu

Installing docker on a Raspberry Pi running Ubuntu

Basic docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
  "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER

Install docker compose

curl -L https://raw.githubusercontent.com/docker/compose-cli/main/scripts/install/install_linux.sh | sh

sudo apt install docker-compose

(no other methods seem to work)

Acknowledgements

Mostly taken from here.

@lihungte96
Copy link

Hi,
I try to follow the instruction to install docker on Raspberry pi 3 (bullseye). However some error occure. The error message shows below.
The repository 'https://download.docker.com/linux/ubuntu bullseye Release' does not have a Release file.

@dominicsayers
Copy link
Author

bullseye is a Debian release, I think. These instructions assume you're running Ubuntu. I'll change the title to make it clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment