{"id":118,"date":"2023-08-05T08:17:47","date_gmt":"2023-08-05T08:17:47","guid":{"rendered":"http:\/\/it4home.dk\/?p=118"},"modified":"2023-08-06T09:10:13","modified_gmt":"2023-08-06T09:10:13","slug":"installing-yacht-self-hosted-web-interface-for-docker","status":"publish","type":"post","link":"https:\/\/it4home.dk\/index.php\/2023\/08\/05\/installing-yacht-self-hosted-web-interface-for-docker\/","title":{"rendered":"Installing Yacht &#8211; Self-Hosted Web Interface for Docker"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/118?print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><\/a><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/118?print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/it4home.dk\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<p class=\"wp-block-paragraph\">Step 1: Create Docker Volume for Yacht<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To create a Docker volume for Yacht, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker volume create yacht<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Install and Run Yacht<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install Yacht and run it in Docker, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d -p 8000:8000 \\\n  -v \/var\/run\/docker.sock:\/var\/run\/docker.sock \\\n  -v yacht:\/config \\\n  selfhostedpro\/yacht<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Explanation of options used:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-d<\/code>: Run the container in the background (detached mode).<\/li>\n\n\n\n<li><code>-p 8000:8000<\/code>: Map port 8000 from the container to port 8000 on the host system. This allows you to access Yacht&#8217;s web interface at <code>http:\/\/localhost:8000<\/code>.<\/li>\n\n\n\n<li><code>-v \/var\/run\/docker.sock:\/var\/run\/docker.sock<\/code>: Mount the Docker socket inside the container to allow Yacht to interact with Docker on the host system.<\/li>\n\n\n\n<li><code>-v yacht:\/config<\/code>: Create a Docker volume named &#8220;yacht&#8221; and mount it to the &#8220;\/config&#8221; directory inside the container. This volume allows you to persist Yacht&#8217;s configuration and data.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: First Login<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once Yacht is up and running, you can log in to the web interface using the following credentials:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>URL: <code>http:\/\/localhost:8000<\/code><\/li>\n\n\n\n<li>Username: <code>admin@yacht.local<\/code><\/li>\n\n\n\n<li>Password: <code>pass<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Import Template (Optional)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you wish to import a template for pre-configured containers, use the following URL:<br>Template URL: <a href=\"https:\/\/raw.githubusercontent.com\/SelfhostedPro\/selfhosted_templates\/yacht\/Template\/template.json\">https:\/\/raw.githubusercontent.com\/SelfhostedPro\/selfhosted_templates\/yacht\/Template\/template.json<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Conclusion:<br>By following these steps, you have successfully installed Yacht, a self-hosted web interface for managing Docker containers. You can now access the Yacht web interface and start managing your Docker containers with ease.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy the benefits of Yacht&#8217;s user-friendly interface and simplified Docker container management! Happy sailing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Create Docker Volume for Yacht To create a Docker volume for Yacht, use the following command: Step 2: Install and Run Yacht To install Yacht and run it in Docker, execute the&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":193,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[2],"tags":[35],"class_list":["post-118","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-ok"],"_links":{"self":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":3,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions\/215"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media\/193"}],"wp:attachment":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}