0476.html 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Docker On Android TV Box Running Armbian</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Armbian,Docker,ARM,ARM64,Single Board Computer,SBC,Raspberry Pi,Raspberry Pi Alternative,Debian,Linux,Containerization,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Docker On Android TV Box Running Armbian">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="06/17/2022 08:53:34 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 Android TV Box Running Armbian</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</code></li>
  32. <li>If running a Debian Armbian build, run the following commands:<br />
  33. <code class="codeBlock"># add docker GPG key<br />
  34. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -<br />
  35. # add docker software repository<br />
  36. sudo add-apt-repository &quot;deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable&quot;</code></li>
  37. <li>If running a Ubuntu Armbian build, run the following commands:<br />
  38. <code class="codeBlock"># add docker GPG key<br />
  39. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br />
  40. # add docker software repository<br />
  41. sudo add-apt-repository &quot;deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;</code></li>
  42. <li>Continue with the following commands:<br />
  43. <code class="codeBlock"># install docker<br />
  44. sudo apt update<br />
  45. sudo apt install docker-ce docker-ce-cli containerd.io<br />
  46. # start docker service<br />
  47. sudo systemctl start docker<br />
  48. # enable docker service on startup<br />
  49. sudo systemctl enable docker<br />
  50. # create a docker group<br />
  51. sudo groupadd docker<br />
  52. # add the current user to the docker group<br />
  53. sudo usermod -aG docker $USER</code></li>
  54. <li>To run a basic Docker container, run the following command in a terminal:<br />
  55. <code class="codeBlock">sudo docker run hello-world</code></li>
  56. <li>Docker will download the hello-world container and execute it, displaying following output:
  57. <p>Hello from Docker!<br />
  58. This message shows that your installation appears to be working correctly.</p>
  59. <p>To generate this message, Docker took the following steps:<br />
  60. 1. The Docker client contacted the Docker daemon.<br />
  61. 2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.<br />
  62. (amd64)<br />
  63. 3. The Docker daemon created a new container from that image which runs the<br />
  64. executable that produces the output you are currently reading.<br />
  65. 4. The Docker daemon streamed that output to the Docker client, which sent it<br />
  66. to your terminal.</p>
  67. </li>
  68. </ol>
  69. <p>Source: <a href="https://docs.docker.com/engine/install/debian/" target="_blank">https://docs.docker.com/engine/install/debian/</a></p>
  70. </div>
  71. </div>
  72. </body>
  73. </html>