Install Docker on Raspberry Pi


Operation confirmed model


  1. Update the package.

    sudo apt update
  2. Download and run the Docker installation script.

    curl -fsSL -o
    sudo sh
  3. Join the pi user to the docker group.

    sudo usermod -aG docker pi
  4. If you are logged in to the shell as the pi user, log out and then log back in.


Operation check

  1. Execute the following command to check the operation.

    docker -v
    Docker version 19.03.13, build 4484c46
  2. Run the following command and try hello-world.

    docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    4ee5c797bcd7: Pull complete 
    Digest: sha256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Status: Downloaded newer image for hello-world:latest
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    To generate this message, Docker took the following steps:
    1. The Docker client contacted the Docker daemon.
    2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
    4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.
    To try something more ambitious, you can run an Ubuntu container with:
    $ docker run -it ubuntu bash
    Share images, automate workflows, and more with a free Docker ID:
    For more examples and ideas, visit:


  1. If there is no problem, set docker to start automatically when Raspbian OS starts.

    sudo systemctl enable docker

Recommended Posts

Install Docker on Raspberry Pi
Install Docker on Raspberry Pi 4 and Raspberry Pi OS 64bit
Install MariaDB on Raspberry Pi OS
Headless install of Ubuntu 20.10 on Raspberry Pi
I installed Docker on my Raspberry Pi 3
Install Docker on Manjaro
Install CentOS 7 on Raspberry pi 4 Model B
Launched Redmine with Docker on Raspberry Pi 3
Install Docker and docker-compose on Raspberry Pi 4, Linux (Debian) and Windows 10, respectively
Install Ubuntu Core 18 on Raspberry Pi 2 Model B
Radiko recording server on Raspberry Pi 4 (Docker unused)
I couldn't install docker with raspberry pi2 b +.
Send emails using Docker container on Raspberry Pi 3
Install Docker on Windows 10 PRO
Put Ubuntu 20.04.1 on Raspberry Pi 4
Install Docker on Ubuntu Server 20.04
Install docker on AWS EC2
Minecraft server on Raspberry Pi 4
Install openjdk8 on Docker image (Debian)
Install Docker on AWS Ubunt 20.04 LTS
Try putting CentOS 8 on Raspberry Pi 3
Note: setting javaMail on Raspberry Pi
The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
Raspberry Pi Kubernetes and Docker downgraded story
Install Cloud9 on Raspberry pi 4 and set up Rails development environment
Install docker and docker-compose on Alpine Linux
Liberty on Docker
Put Kanban in Docker of Raspberry Pi 3
Serially connect to Ubuntu on Raspberry Pi
Redmine on Docker
Just install Laravel8 on docker in PHP8 environment
Install gradle on mac
Install Corretto 8 on Windows
Install OpenJDK on macOS
Install Java on Mac
Docker installation on CentOS 6
Install Golang on CentOS 8
Install pyqt5 on ubuntu
python notes on docker
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install Ruby on Ubuntu 20.04
Install PostgreSQL 12 on Centos8
How to install Docker
Install nginx on centOS7
Install lombok on SpringToolSuite4
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Autoware on Ubuntu 18.04.5
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install openjdk11 on mac
Install Homebrew on Ubuntu 20.04
M.S. docker on Windows
Install Redmine 4.1.1 on CentOS 7
Install OpenJDK 8 on mac
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Docker installation on WSL2
Install Composer with Docker