Install Docker On Raspberry Pi 4

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=iT5hPPW9_mE



Category:
Tutorial
Duration: 1:03
703 views
20


#Docker #RaspberryPi #Linux

Full steps can be found at https://i12bretro.github.io/tutorials/0475.html

   01. Log into the Linux device
   02. Execute the following commands in a terminal:
# update software repositories
sudo apt update
# install necessary packages for https apt calls
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# add docker GPG key
curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -
# add docker software repository
echo "deb [arch=armhf] https://download.docker.com/linux/raspbian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list
# install docker
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
# start docker service
sudo systemctl start docker
# enable docker service on startup
sudo systemctl enable docker
# create a docker group
sudo groupadd docker
# add the current user to the docker group
sudo usermod -aG docker $USER
   03. To run a basic Docker container, run the following command in a terminal:
sudo docker run hello-world
   04. Docker will download the hello-world container and execute it, displaying following output:
         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.
         (amd64)
         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.
 
Source:  https://docs.docker.com/engine/install/debian/
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Container
Containerization
Debian
Docker
Docker Host
Docker How To
Docker Install Script
Docker Installation Tutorial
Docker Made Easy
Docker Setup Tutorial
Docker Simplified
Docker Tutorial
Getting Started With Docker
Home Lab
Home Lab Ideas
How To
How To Install Docker On Debian
How To Setup Docker On Raspberry Pi
Install Docker Host
Install Guide
Linux
SBC
Self-Hosted
Single Board Computer
Tutorial
i12bretro