Portainer is an open-source tool designed to help you manage Docker containers, images, and volumes through a web-based UI. In this tutorial, we will guide you through the process of installing Portainer on Debian latest.
Before starting this tutorial, make sure you have the following:
First, make sure your packages list is up-to-date by running:
sudo apt-get update
To install Portainer, you can use the following command:
sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
This command will download the Portainer image from the Docker Hub and start a new container named portainer
. The -p
argument maps the container's port 9000 to the host's port 9000, allowing you to access the Portainer UI.
The --restart always
argument ensures that Portainer will be automatically started at boot time or after a server restart.
The -v
argument mounts the Docker daemon's UNIX socket (at /var/run/docker.sock
) inside the container. This allows Portainer to communicate with the Docker daemon on the host.
You can check if Portainer is running by executing the following command:
sudo docker ps
You should see a container with the name portainer
in the list of running containers.
To access the Portainer UI, open your web browser and go to http://<your-server-ip>:9000
. You will be asked to set up an initial admin user.
Select a username and password, then click on the Create User
button. After that, you will be redirected to the Portainer dashboard interface.
You have successfully installed and deployed Portainer on Debian latest. You can now manage your Docker environment using the Portainer UI. If you encounter any issues or errors during the installation process, please refer to the Portainer documentation.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!