Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Would a wsl2 based docker setup work to create windows executables? #89

Open
revantjhalani opened this issue Nov 18, 2020 · 2 comments
Open

Comments

@revantjhalani
Copy link

In my current setup, I cannot get docker to start using hyper-v, so would it be possible for me to build the environments using wsl-2 based docker setup?

@Ghostkeeper
Copy link
Contributor

Our Windows docker script requests a specific Windows version, and downloads some dependencies (e.g. compiler) through Chocolatey, executes powershell.exe. I don't think it'll work properly if you can't virtualise the Windows environment.

The Linux docker scripts require a certain distribution. There's one for Debian (hardly tested) and one for CentOS (well-tested). Both get dependencies from their respective package managers (apt and yum). If you get those to work, there's a chance that you can get the content of the Docker script executed. I've never tried of course, you're sort of on your own.

@revantjhalani
Copy link
Author

I see. Well, the thing is, I need to do this virtually. I tried a windows setup in both VMware and KVM with nested virtualization enabled but apparently docker cannot run in a nested windows VM just yet.
And I still can't figure out how to get the native Windows build process working

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants