0263.html 3.2 KB

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