Skip to content

Instantly share code, notes, and snippets.

@zeroseis
Last active September 7, 2023 15:57
Show Gist options
  • Save zeroseis/9921626edd5058f4bcab769326786ea2 to your computer and use it in GitHub Desktop.
Save zeroseis/9921626edd5058f4bcab769326786ea2 to your computer and use it in GitHub Desktop.
Setup Docker on Raspberry Pi for development

Install Docker

$ curl -sSL https://get.docker.com | sh

Install docker-compose

$ sudo apt install python3-pip

$ sudo pip3 install docker-compose

Docker login

$ docker login -u [username]

Generate SSH key (for GitHub)

$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Then add the key found in ~/.ssh/id_rsa.pub to your GitHub account.

Install Git

$ sudo apt install git


Notes

If you're developing on x86 containers (Intel/AMD), you will get execution errors caused by processor incompatibility. This article may help you fix it: Getting started with Docker on your Raspberry Pi

Multiple Docker images for ARM processors are available on arm32's profile in Docker Hub

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