0476.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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="How To,Tutorial,i12bretro,Armbian,Docker,ARM,ARM64,Single Board Computer,SBC,Raspberry Pi,Raspberry Pi Alternative,Debian,Linux,Containerization">
  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. <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 Android TV Box Running Armbian</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 gnupg-agent software-properties-common</code></li>
  31. <li>If running a Debian Armbian build, run the following commands:<br />
  32. <code class="codeBlock"># 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=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable&quot;</code></li>
  36. <li>If running a Ubuntu Armbian build, run the following commands:<br />
  37. <code class="codeBlock"># add docker GPG key<br />
  38. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br />
  39. # add docker software repository<br />
  40. sudo add-apt-repository &quot;deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;</code></li>
  41. <li>Continue with the following commands:<br />
  42. <code class="codeBlock"># install docker<br />
  43. sudo apt update<br />
  44. sudo apt install docker-ce docker-ce-cli containerd.io<br />
  45. # start docker service<br />
  46. sudo systemctl start docker<br />
  47. # enable docker service on startup<br />
  48. sudo systemctl enable docker<br />
  49. # create a docker group<br />
  50. sudo groupadd docker<br />
  51. # add the current user to the docker group<br />
  52. sudo usermod -aG docker $USER</code></li>
  53. <li>To run a basic Docker container, run the following command in a terminal:<br />
  54. <code class="codeBlock">sudo docker run hello-world</code></li>
  55. <li>Docker will download the hello-world container and execute it, displaying following output:
  56. <p>Hello from Docker!<br />
  57. This message shows that your installation appears to be working correctly.</p>
  58. <p>To generate this message, Docker took the following steps:<br />
  59. 1. The Docker client contacted the Docker daemon.<br />
  60. 2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.<br />
  61. (amd64)<br />
  62. 3. The Docker daemon created a new container from that image which runs the<br />
  63. executable that produces the output you are currently reading.<br />
  64. 4. The Docker daemon streamed that output to the Docker client, which sent it<br />
  65. to your terminal.</p>
  66. </li>
  67. </ol>
  68. <p>Source: <a href="https://docs.docker.com/engine/install/debian/" target="_blank">https://docs.docker.com/engine/install/debian/</a></p>
  69. </div>
  70. </div>
  71. </body>
  72. </html>