Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for How to Install Docker on Raspberry Pi 4 with Raspbian Buster
Wael Ramadan
Wael Ramadan

Posted on

     

How to Install Docker on Raspberry Pi 4 with Raspbian Buster

This is a simple guide to creating aDocker development environment with yourRaspberry Pi 4.

This has been tested on aRaspberry Pi 4 Model B Rev 1.1 usingRaspbian Buster.

You can check your Raspberry Pi model by running the following command in the Raspberry Pi terminal:

cat /proc/cpuinfo
Enter fullscreen modeExit fullscreen mode

Check cpu info in raspbian

You can also check your Raspbian OS version by running the following command in the Raspberry Pi terminal:

cat /etc/os-release
Enter fullscreen modeExit fullscreen mode

Check OS info in raspbian


Steps

  1. Install Docker
curl -sSl https://get.docker.com | sh
Enter fullscreen modeExit fullscreen mode
  1. Install dependencies
sudo apt-get install -y python python-pipsudo apt-get install libffi-dev libssl-dev
Enter fullscreen modeExit fullscreen mode
  1. Add permissions for Pi User to run Docker Commands
sudo usermod -aG docker $USER
Enter fullscreen modeExit fullscreen mode
  1. Install Docker Compose
sudo pip install docker-compose
Enter fullscreen modeExit fullscreen mode
  1. Test Docker installation
docker run hello-world
Enter fullscreen modeExit fullscreen mode

Note: you might need to restart your Raspberry Pi to use docker without sudo persissions.

docker hello-world

If the installation was completed successfully, you will get the "Hello from Docker!" message. You can then check outDocker Hub forarm based images to run on your Raspberry Pi.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Writing about open source dev tools!
  • Joined

More fromWael Ramadan

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp