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
  • Post comments:0 Comments

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

WunderTech is a website that provides tutorials and guides on various NAS, server, networking, and infrastructure-related topics. WunderTech is maintained by Frank Joseph, an IT professional with 14+ years of experience in corporate IT and application management. He focuses on sharing his experience with others on his WunderTech website and YouTube page. Frank holds a Bachelor of Science in Computer Information Systems and a master of Business Administration (MBA).

Leave a Reply