Install Docker & Portainer 2.0 on Debian Based Distros!

Today we are going to look at how to install Docker and Portainer 2.0 on Debian based 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!

Instructions - Docker & Portainer 2.0 - Debian Based Distros

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 pull portainer/portainer-ce
sudo docker run --restart=always --name=portainer -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce

portainer 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

I was in the process of creating a more “in-depth” tutorial for a specific Docker container (tutorial coming next week) and I decided to split this out to its own tutorial. Rather than referring future tutorials to the first half of a tutorial, I figured this would be best since we will build on it from here. I already created a tutorial on how this can be done on Raspberry Pi’s, but this will show you how to set it up on Debian based distros!

Leave a Reply

Close Menu