My personal Newbie Sunday: How to install docker on Debian.
Hello all !
Following that post, I'm offering to noobs like me the opportunity to learn how to install docker to a Debian system.
Being a beginner myself, I don't pretend to know the perfect or more appropriate way to achieve this, and I hope that more experienced people will join the conversation to correct and complete the informations I'm about to give.
The first way I know of is the way I first installed docker and portainer on my machine.
I used OpenMediaVault and omv-extras, which was quite straight formard. But depending on the version you are using, you might not find omv-extras anymore in OMV, and the new way of getting docker through it is in my opinion quite painfull.
So let's go with the simple way:
Pre-requisite : having Debian installed on your machine and SSH into it.
Set up the repository:
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
The first time you access Portainer, the system asks to create a password for the admin user. Type the password twice and select the Create user button.
Select the Get Started button to go to the dashboard and start using Portainer in the local environment only.
You're set up !
Now, you can use simple docker-composes in Portainer stacks tab to deploy new apps and services.
I would suggest having a look at podman. It's a drop-in replacement for docker, except it doesn't require a constantly running daemon, it comes in the main package repositories, so you don't have to do the key and repository stuff, and cockpit has a plugin to help manage podman containers.