Updated at 03/07/2025
What is Portainer ? Portainer is a GUI-based tool for managing Docker.
I’d like to host projects using Docker on a VPS, and Portainer makes maintenance much easier.
Table of contents 1. Prerequest
2. Prepare a source code
3. Register Image to GHCR
4. Create a container by Portainer
5. My trouble shooting
1. Prerequest VPS Portainer is deployed Docker Github account 2. Prepare a source code Create a directory in VPS
Updated at 03/07/2025
What happend After updating Portainer, I noticed that my account and related data were lost.
Why it happend I updated Portainer to the latest version following the official documentation.
I’ll show you how I set up Portainer in VPS.
I ran the following command:
docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest To update Portainer, I stopped the container and then removed it. After that, I ran the same command I used previously to create the container, which started the updated version.
Updated at 03/07/2025
Motivation I’d like to publish my blog on my persoanl server.
Requirements VPS as a server Portainer to manage container Hugo to generate static site Table of contents 1. Preparation
2. Add new stack to Portainer
3. Add style to hugo
4. Add new content
5. Access the page
1. Preparation I cound’t start new container for Hugo from Portainer, so I had to create a directory then install Hugo in my VPS server.