You will need to install both docker and docker compose.
This guide assumes your Distro is up to date. If it is not run the commands below
apt-get update
apt-get dist-upgrade
You should also make sure that you are not using the root user but a user with sudo privileges.