How to install Docker on Raspberry Pi

Published by Tobias Hofmann on

2 min read

Installing Docker on a Raspberry Pi is as easy as following the official Docker installation guide. This document contains the steps to install Docker in a wide range of Debian based systems, including Raspbian. As the steps are in one document you have to jump to different sections. To make it clearer / easier, I’ll just show the necessary steps for Raspbian.

Preparation

Remove eventually installed obsolete docker versions.

sudo apt-get update
sudo apt-get remove docker docker-engine docker.io containerd runc
Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Installation

Installation on Raspbian is done via convenience script. Read the warning text carefully, as you are going to install packages as root without really knowing what Docker is going to install. As recommended, you should check the content of the downloaded script. I’d like to have Docker also share a checksum for the file in their documentation.

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Post-installation

The convenience script adds a Docker repository to your apt configuration. From now on, updates and package management is taken care of via apt.

Additional post-installation steps include running docker as non-root user as well as the docker documentation on post-installation. I tried to get docker running as a non-root user, but in my case the daemon always stopped with an error message. Maybe you have more luck.

Let the world know
Categories: Raspberry PiTechnology

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.