Installing Docker on Debian 10
Step 1 - Setting up the Docker repo⌗
Debian doesn’t use sudo, so instead login as root and update your system.
Next, install a few prerequisite packages which let apt use packages over HTTPS:
Then add the GPG key for the official Docker repository to your system:
Add the Docker repository to APT sources:
Next, update the package database with the Docker packages from the newly added repo:
Make sure you are about to install from the Docker repo instead of the default Debian repo:
Step 2 - Installing Docker⌗
Now that everything is setup and you are able to pull the package from the Docker repo. Install it!
Step 3 - Running Docker as ${USER}⌗
Just add your username to the docker group.
For the changes to take affect, logout and back in, or type:
Now confirm that your user has been added to the docker group:
Read other posts