0468.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Control Local Docker Containers From a Web Browser with Yacht</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Containerization,Docker,Docker Management,Homelab,Yacht,Docker Made Simple,Docker Simplified,Linux,Container,Containerize,Docker Container,Docker How To,Docker Tutorial,Docker Installation Tutorial,Getting Started With Docker,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Control Local Docker Containers From a Web Browser with Yacht">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/31/2023 09:05:41 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>Control Local Docker Containers From a Web Browser with Yacht</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Yacht?</h2>
  26. <blockquote cite="https://portainer.io"><em>Yacht is a web interface for managing docker containers with an emphasis on templating to provide one-click deployments of dockerized applications. Think of it like a decentralized app store for servers that anyone can make packages for. -<a href="https://yacht.sh/docs/" target="_blank">https://yacht.sh/docs/</a></em></blockquote>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux based device</li>
  30. <li>Run the following commands in the terminal
  31. <div class="codeBlock"># install prerequisites<br />
  32. sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
  33. # add docker gpg key<br />
  34. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br />
  35. # add docker software repository<br />
  36. sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;<br />
  37. # install docker<br />
  38. sudo apt install docker-ce docker-compose containerd.io -y<br />
  39. # enable and start docker service<br />
  40. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  41. # add the current user to the docker group<br />
  42. sudo usermod -aG docker $USER<br />
  43. # reauthenticate for the new group membership to take effect<br />
  44. su - $USER</div>
  45. </li>
  46. </ol>
  47. <h2>Running Yacht</h2>
  48. <ol>
  49. <li>Now that Docker is installed, run the following commands to setup the Yacht Docker container and run it
  50. <div class="codeBlock"># create working directories<br />
  51. mkdir ~/docker/yacht -p<br />
  52. # run the yacht docker container<br />
  53. docker run -d -p 8000:8000 -v /var/run/docker.sock:/var/run/docker.sock -v ~/docker/yacht:/config --restart unless-stopped selfhostedpro/yacht</div>
  54. </li>
  55. <li>Once the Yacht container is downloaded and running, open a web browser and navigate to http://DNSorIP:8000</li>
  56. <li>Login with the username admin@yacht.local and password pass</li>
  57. <li>Click Admin &gt; User in the top right corner</li>
  58. <li>Select Change Password from the top navigation menu</li>
  59. <li>Enter and confirm a new password</li>
  60. <li>Optionally, change the username</li>
  61. <li>Click the Change User Info button to apply the changes</li>
  62. <li>Welcome to Yacht, Docker container management from a web browser</li>
  63. </ol>
  64. <p>Documentation: <a href="https://github.com/SelfhostedPro/Yacht" target="_blank">https://github.com/SelfhostedPro/Yacht</a></p> </div>
  65. </div>
  66. </body>
  67. </html>