Installing Yacht – Self-Hosted Web Interface for Docker

image_print

Step 1: Create Docker Volume for Yacht

To create a Docker volume for Yacht, use the following command:

docker volume create yacht

Step 2: Install and Run Yacht

To install Yacht and run it in Docker, execute the following command:

docker run -d -p 8000:8000 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v yacht:/config \
  selfhostedpro/yacht

Explanation of options used:

  • -d: Run the container in the background (detached mode).
  • -p 8000:8000: Map port 8000 from the container to port 8000 on the host system. This allows you to access Yacht’s web interface at http://localhost:8000.
  • -v /var/run/docker.sock:/var/run/docker.sock: Mount the Docker socket inside the container to allow Yacht to interact with Docker on the host system.
  • -v yacht:/config: Create a Docker volume named “yacht” and mount it to the “/config” directory inside the container. This volume allows you to persist Yacht’s configuration and data.

Step 3: First Login

Once Yacht is up and running, you can log in to the web interface using the following credentials:

  • URL: http://localhost:8000
  • Username: admin@yacht.local
  • Password: pass

Step 4: Import Template (Optional)

If you wish to import a template for pre-configured containers, use the following URL:
Template URL: https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/yacht/Template/template.json

Conclusion:
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.

Enjoy the benefits of Yacht’s user-friendly interface and simplified Docker container management! Happy sailing!

You may also like...