How to Install Docker and Portainer on Debian

  • Post author:WunderTech
  • Post published:September 27, 2020
  • Post last modified:November 2, 2022
  • Post category:Linux
  • Reading time:4 mins read

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 - downloading the portainer container

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 - creating an account for portainer

4. Select Docker and Connect.

portainer debian - connecting to the local docker instance
5. Select Local.

local docker instance

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!

WunderTech

Frank is an IT professional with 13+ years experience and the creator of WunderTech. He focuses on sharing his experience with others on computer hardware, servers, software, networking, and self-hosted apps. He has a BS in Computer Information Systems and an MBA. Learn more about Frank in his bio.