Advance

A Few Steps to Install Portainer on Debian 12

A Few Steps to Install Portainer on Debian 12
2.6
(5)

Portainer is an open-source management tool that simplifies the deployment and management of Docker containers. It provides a user-friendly web interface to monitor and control Docker containers, images, networks, and volumes. This guide will walk you through the process of installing Portainer on Debian 12, ensuring a smooth and hassle-free installation.

How to Install Portainer on Debian 12

Portainer is an open-source container management tool that provides a user-friendly interface for managing containerized applications. It simplifies the deployment, management, and monitoring of Docker containers and container clusters. This tool allows users to interact with Docker and container orchestration platforms, such as Kubernetes and Swarm, through a web-based graphical interface.

Recommended Article: How To Install vnStat On Debian 10 [Complete]

Installing Docker CE on Debian 12

First of all, you should install Docker CE on your server. To do so, install all the required dependencies with the command below:

apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y

Now add the Docker GPG key and repository as shown below:

curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

Then update the repository using the command below:

apt update -y

And install the Docker CE package by running the following command:

apt install docker-ce -y

You can verify the Docker version with the command below:

docker --version

Installing Docker Compose on Debian 12

In this step, it is recommended to install Docker Compose. To do this first, download the latest version of Docker Compose binary with the following command:

wget https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64

Once the download is finished, copy the downloaded binary to the system location as shown below:

cp docker-compose-linux-x86_64 /usr/local/bin/docker-compose

And set the executable permission to the Docker Compose binary using the command below:

chmod +x /usr/local/bin/docker-compose

You can verify the Docker Compose installation by running the following command:

docker-compose --version

Installing Portainer on Debian 12

Now it’s time to install Portainer. So, create a volume to store Portainer data with the following command:

docker volume create data

Verify the created volume by running the following command:

docker volume ls

To download and run the Portainer Docker image, simply execute the following command:

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

If you want to verify the status of Portainer, use the command below:

docker ps

Accessing Portainer Web Interface

Once Portainer has been successfully installed and is up and running on port 9000, you can access it by using the following URL:

http://your-server-ip:9000

Upon visiting this URL, you will be directed to the following page. To proceed, please provide an admin username and password, and then click on the “Create user” button:

 

Portainer-login

 

This action will lead you to the following page. Lastly, click on the “Get Started” button to view the status of all local containers:

 

Welcome-to-Portainer

 

That’s it!

Recommended Article: How to Install Opencart with Nginx and SSL on Debian 10

Conclusion

By following the steps outlined in this guide, you have successfully installed Portainer on Debian 12. With Portainer’s intuitive web interface, you can now easily manage and monitor your Docker containers. Also, you can leverage Portainer’s intuitive web interface to easily manage and monitor your Docker containers, ensuring efficient containerization of your applications.

How useful was this post?

Click on a star to rate it!

Average rating 2.6 / 5. Vote count: 5

No votes so far! Be the first to rate this post.

View More Posts
Tom Veitch
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day