简体   繁体   中英

Linux docker build on Windows

I am developing a C++ application on a Linux virtual (ubuntu) machine hosted on Windows:

  • build the project using CMake
  • create.deb packages (they install docker containers on the Linux host, where my app runs)
  • the docker containers use /usr/bin, /usr/conf, /etc... directories on Linux

The problem is that, if I run cmake on Windows, then the directories are missing (/usr/bin, /etc...) Is it possible (and if yes, then how) to build the project on Windows, without the Linux VM? (it is really slow and cumbersome)

For ex. can I create the necessary directories on Windows and run cmake, so that at least the build can be made on Windows, bypassing the VM?

Did you try WSL2?

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

It would be faster than on VM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM