Install Docker and Docker Compose on Debian Based Systems
This is the easiest way to install Docker and Docker Compose on any system that utilises the APT package manager. These systems include Ubuntu, Linux Mint and Debian.
apt update
apt install docker.io docker-compose -y
Then as the root user, you should be able to enter the command docker to confirm this has worked.
To give other users permission to run docker commands, enter the following command where jamie is the name of your other user...
sudo usermod -aG docker jamie
You'll then need to logout of that user then log back in for the change to take effect.