Control Local Docker Containers From a Web Browser with Yacht
#Yacht #Docker #PortainerAlternative
Full steps can be found at https://i12bretro.github.io/tutorials/0468.html
--------------------------------------------------------------------
What is Yacht?
--------------------------------------------------------------------
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. - https://yacht.sh/docs/
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
--------------------------------------------------------------------
Running Yacht
--------------------------------------------------------------------
01. Now that Docker is installed, run the following commands to setup the Yacht Docker container and run it
# create working directories
mkdir ~/docker/yacht -p
# run the yacht docker container
docker run -d -p 8000:8000 -v /var/run/docker.sock:/var/run/docker.sock -v ~/docker/yacht:/config --restart unless-stopped selfhostedpro/yacht
02. Once the Yacht container is downloaded and running, open a web browser and navigate to http://DNSorIP:8000
03. Login with the username admin@yacht.local and password pass
04. Click Admin ≫ User in the top right corner
05. Select Change Password from the top navigation menu
06. Enter and confirm a new password
07. Optionally, change the username
08. Click the Change User Info button to apply the changes
09. Welcome to Yacht, Docker container management from a web browser
Documentation: https://github.com/SelfhostedPro/Yacht
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro