If you do not have yay installed, then follow these steps to install it first
yayyay -S docker docker-composesudo systemctl start docker.serviceIf the above command throws an error, then do the following
sudo systemctl enable docker.service
rebootsudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker