Docker and Vagrant on Windows? Why not?

It is 2021 — running Docker and Vagrant parallel on Windows isn’t impossible anymore

The Problem(s)

Old times

# disable Hyper-V to use VirtualBox/Vagrant — it brokes Docker
bcdedit /set hypervisorlaunchtype off
# enable Hyper-V to use Docker — it brokes Vagrant/VB
bcdedit /set hypervisorlaunchtype auto


vagrant init hashicorp/bionic64
vagrant up
vagrant ssh
Yay! You can vagrant halt now to stop your VM

Let’s install Docker.

Remember about WSL2!
Go to for instructions
- Download the Linux kernel update package
- Set WSL 2 as your default version

What if you have Docker installed before?

If you’re working on Windows 10 Home Edition, this checkbox has to be marked
bcdedit /set hypervisorlaunchtype auto

Moment of truth

docker run -dit ubuntu
docker ps
vagrant up
vagrant destroy
rmdir /s .vagrant
vagrant up


A programmer who surprisingly became CTO of a med-tech startup. A bridge between technical people and “business point of view”.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store