Installing Docker on Raspberry Pi 4
Sungwa Yu

Device Information

Hardware: Raspberry Pi 4

Software: Raspberry Pi OS Lite 5.10 May 7th 2021

Installation

1
2
3
4
5
6
7
$ sudo apt-get update

$ sudo apt-get install docker-ce

$ curl -fsSL get.docker.com -o get-docker.sh

$ sudo sh get-docker.sh

Start Docker

1
2
3
$ sudo systemctl enable docker

$ sudo systemctl start docker

Create Docker User Group

Because Docker only allows root user and docker group’s user to access.

1
2
3
$ sudo groupadd docker

$ sudo usermod -aG docker pi # Can replace "pi" to any other users

Test

1
$ docker run --rm hello-world

References

https://yeasy.gitbook.io/docker_practice/install/raspberry-pi