0263.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Docker On Debian/Ubuntu</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Docker On Debian/Ubuntu">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/25/2022 07:51:53 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Docker On Debian/Ubuntu</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Linux device</li>
  27. <li>Execute the following commands in a terminal:<br />
  28. <code class="codeBlock"># update software repositories<br />
  29. sudo apt update<br />
  30. # install necessary packages for https apt calls<br />
  31. sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common<br />
  32. # add docker GPG key<br />
  33. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -<br />
  34. # add docker software repository<br />
  35. sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable&quot;<br />
  36. # install docker<br />
  37. sudo apt update<br />
  38. sudo apt install docker-ce docker-ce-cli containerd.io<br />
  39. # create a docker group<br />
  40. sudo groupadd docker<br />
  41. # add the current user to the docker group<br />
  42. sudo usermod -aG docker $USER</code></li>
  43. <li>To run a basic Docker container, run the following command in a terminal:<br />
  44. <code class="codeBlock">sudo docker run hello-world</code></li>
  45. <li>Docker will download the hello-world container and execute it, displaying following output:
  46. <p>Hello from Docker!<br />
  47. This message shows that your installation appears to be working correctly.</p>
  48. <p>To generate this message, Docker took the following steps:<br />
  49. 1. The Docker client contacted the Docker daemon.<br />
  50. 2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.<br />
  51. (amd64)<br />
  52. 3. The Docker daemon created a new container from that image which runs the<br />
  53. executable that produces the output you are currently reading.<br />
  54. 4. The Docker daemon streamed that output to the Docker client, which sent it<br />
  55. to your terminal.</p>
  56. </li>
  57. </ol>
  58. <p>Source: <a href="https://docs.docker.com/engine/install/debian/" target="_blank">https://docs.docker.com/engine/install/debian/</a></p>
  59. </div>
  60. </div>
  61. </body>
  62. </html>