1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Install Docker On Debian/Ubuntu</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="How To Install Docker On Debian,How To Setup Docker On Debian,Getting Started With Docker,Docker,Installation,Docker Made Easy,Docker Host,Docker Tutorial,Install Docker Host,Home Lab,Self-Hosted,Command Line,Containerization,CLI,Container,Debian,Ubuntu,Linux,Install Guide,Docker Simplified,Docker Install Script,Docker How To,Docker Setup Tutorial,Docker Installation Tutorial,Home Lab Ideas,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Install Docker On Debian/Ubuntu">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="05/25/2022 07:51:53 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 Debian/Ubuntu</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/debian/gpg | sudo apt-key add -<br />
- # add docker software repository<br />
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"<br />
- # install docker<br />
- sudo apt update<br />
- sudo apt install docker-ce docker-ce-cli containerd.io<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>
-
|