|
@@ -0,0 +1,68 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Install Docker On Raspberry Pi 4</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="keywords" content="Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,SBC,Single Board Computer,Container,Containerization,Debian,Docker,Docker Host,Docker How To,Docker Install Script,Docker Installation Tutorial,Docker Setup Tutorial,Docker Simplified,Docker Tutorial,Getting Started With Docker,How To Install Docker On Debian,Install Docker Host,Linux,How To Setup Docker On Raspberry Pi,How To,Tutorial,i12bretro">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Install Docker On Raspberry Pi 4">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="04/01/2023 06:19:40 AM" />
|
|
|
+ <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
|
|
|
+ <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
|
+ <script type="text/javascript" src="includes/js/steps.js"></script>
|
|
|
+ <link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="gridContainer">
|
|
|
+ <div class="topMargin"></div>
|
|
|
+ <div id="listName" class="topMargin">
|
|
|
+ <h1>Install Docker On Raspberry Pi 4</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <ol>
|
|
|
+ <li>Log into the Linux device</li>
|
|
|
+ <li>Execute the following commands in a terminal:<br />
|
|
|
+ <code class="codeBlock"># update software repositories<br />
|
|
|
+ sudo apt update<br />
|
|
|
+ # install necessary packages for https apt calls<br />
|
|
|
+ sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common<br />
|
|
|
+ # add docker GPG key<br />
|
|
|
+ curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -<br />
|
|
|
+ # add docker software repository<br />
|
|
|
+ echo "deb [arch=armhf] https://download.docker.com/linux/raspbian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list<br />
|
|
|
+ # install docker<br />
|
|
|
+ sudo apt update<br />
|
|
|
+ sudo apt install docker-ce docker-ce-cli containerd.io<br />
|
|
|
+ # start docker service<br />
|
|
|
+ sudo systemctl start docker<br />
|
|
|
+ # enable docker service on startup<br />
|
|
|
+ sudo systemctl enable docker<br />
|
|
|
+ # create a docker group<br />
|
|
|
+ sudo groupadd docker<br />
|
|
|
+ # add the current user to the docker group<br />
|
|
|
+ sudo usermod -aG docker $USER</code></li>
|
|
|
+ <li>To run a basic Docker container, run the following command in a terminal:<br />
|
|
|
+ <code class="codeBlock">sudo docker run hello-world</code></li>
|
|
|
+ <li>Docker will download the hello-world container and execute it, displaying following output:
|
|
|
+ <p>Hello from Docker!<br />
|
|
|
+ This message shows that your installation appears to be working correctly.</p>
|
|
|
+
|
|
|
+ <p>To generate this message, Docker took the following steps:<br />
|
|
|
+ 1. The Docker client contacted the Docker daemon.<br />
|
|
|
+ 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.<br />
|
|
|
+ (amd64)<br />
|
|
|
+ 3. The Docker daemon created a new container from that image which runs the<br />
|
|
|
+ executable that produces the output you are currently reading.<br />
|
|
|
+ 4. The Docker daemon streamed that output to the Docker client, which sent it<br />
|
|
|
+ to your terminal.</p>
|
|
|
+ </li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<p>Source: <a href="https://docs.docker.com/engine/install/debian/" target="_blank">https://docs.docker.com/engine/install/debian/</a></p> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|