Download and install VirtualBox from the official website:
🔗 https://www.virtualbox.org/wiki/Downloads

Download and install Vagrant from:
🔗 https://developer.hashicorp.com/vagrant/install

Check the installed version:
vagrant --version

Initialize Vagrant using Ubuntu:
vagrant init hashicorp/bionic64

vagrant up

vagrant ssh

sudo apt update
sudo apt install -y nginx
sudo systemctl start nginx
curl localhost


vagrant halt

vagrant destroy
wsl --install

wsl --install -d Ubuntu

sudo apt update
sudo apt install -y docker.io
sudo systemctl start docker
sudo usermod -aG docker $USER

Logout and login again to apply group changes.
docker pull nginx
docker run -d -p 8080:80 --name nginx-container nginx

curl localhost:8080

Virtual machines were successfully created using Vagrant and containers were deployed using Docker inside WSL. Nginx was installed and verified in both environments.