sudo snap install curl
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
usermod -aG docker $USER
newgrp docker
sudo apt install docker-compose
#another
sudo usermod -aG docker $USER
sudo rm -fr /var/run/docker.sock
# then reboot# Also you can use this for run once
sudo chmod 666 /var/run/docker.sock