Share your love
Install Portainer on Debian 11: Best Container Manager
In this guide, we want to teach you to Install Portainer on Debian 11. Portainer is an open-source service that provides a visual web view for containerized applications. it is a container management tool for Docker, Docker Swarm, Kubernetes, and Azure Container Instances (ACI).
Portainer gives you the ability to deploy and manage your docker containers without having to write code as you’ll normally do with a CLI. With Portainer, you have the flexibility of viewing your containerized apps and managing them via a graphical user interface.
Now follow the steps below provided by the Orcacore team to set up the Portainer Docker container manager on Debian 11.
Table of Contents
Steps To Install Portainer on Debian 11
To install Portainer, you need some requirements, then, follow the rest of the article to complete this guide.
1. Requirements for Portainer setup
You must log in to your server as a root or non-root user with sudo privileges. To do this, you can follow this guide on Initial Server Setup with Debian 11.
Then, you must have Docker installed on your server. To do this, you can follow our guide on Install and Use Docker on Debian 11.
Also, you must have Docker Compose installed on your server. For this purpose, you can visit this guide on Install and Use Docker Compose on Debian 11.
2. Install Portainer on Debian 11
At this point, you can start to install Portainer container management on your server.
Create Docker Volume For Portainer
First, you need to create a volume to store Portainer data. Docker volumes are file systems mounted on Docker containers to preserve data generated by the running container. To do this, run the command below:
docker volume create data
Then, verify it by using the command below:
docker volume ls
Output
DRIVER VOLUME NAME
local data
Download and Run Portainer Docker Image
Now you can use the following command to download and run the Portainer docker image:
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v data:/data portainer/portainer
Next, check your Portainer status with the following command:
docker ps
3. Access Portainer Web Interface on Debian 11
At this point, your Portainer is running on port 9000. You can access it through the web interface by typing your server’s IP address in your web browser followed by 9000:
http://your-server-ip:9000
In the first screen, you should create the initial administrator user.
Then, you will see your Portainer dashboard.
You can now easily host your application on the containerization platform via a web-based interface. For more information, you can check the Portainer Docs.
Conclusion
Portainer is a simple tool that helps you manage Docker containers and other container platforms through a user-friendly interface. At this point, you have learned to Install Portainer on Debian 11.
Hope you enjoy it. You may also interested in these articles: