How to Install Docker and Portainer on Debian

  • Post author:
  • Post last modified:May 29, 2022
  • Post category:Linux

Today we are going to look at how to install Docker and Portainer on Debian distros.

This process is very straight forward but we will be using this in future videos, so I wanted to create one tutorial for it that I could reference later. Docker gives users a way to run multiple containers on different source devices (Linux, Windows, etc).

These containers are incredibly powerful, lightweight, and easy to manage. For that reason, setting up this infrastructure is a great way to slowly integrate new services into your environment. My favorite way of running Docker is on an Ubuntu server installation and using Portainer to access my containers.

This Docker and Portainer installation process will work for all Debian-based distros, however!

How to Install Docker and Portainer on Debian

1. Install and start docker by running the commands below.

sudo apt install docker.io
sudo systemctl start docker

2. Download and run Portainer 2.0 by running the commands below.

sudo docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

how to install docker and portainer on debian

3. This will install Docker and it will be accessible by the workstation’s IP address and port 9000. When you get there, create a username and password.

http://[WORKSTATION_IP_ADDRESS]:9000

portainer debian

4. Select Docker and Connect.

portainer debian
5. Select Local.

ngi2

6. Docker and Portainer are now installed!

Conclusion – How to Install Docker and Portainer on Debian

This tutorial looked at how to install Docker and Portainer on Debian. I already created a tutorial on how this can be done on Raspberry Pi’s, but this will show you how to install Docker and Portainer on Debian.

Thanks so much for checking out the tutorial on how to install Docker and Portainer on Debian. If you have any questions on how to install Docker and Portainer on Debian, please leave them in the comments of the YouTube video!

Please share if this helped you!