With the introduction of Hyper-V, this gave way for Docker Desktop for Windows which under the hood, uses WSL2's to launch a VM as the host Linux operating system.
NOTE: Running containers on Windows machines is suited for local development purposes only and is NOT RECOMMENDED FOR PRODUCTION USE.
If you're using Ubuntu, you can install docker-compose by simply running the two commands below:
$ sudo apt-get update
$ sudo apt-get install -y docker-compose
Read more about it in Install Docker Compose CLI plugin page.
In case you encounter this message when you test Docker for the first time:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
To resolve this, start the docker service and docker daemon,
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker
sudo dockerd
You can checkout this Stackoverflow discussion to know more.