Cross Compiling with Docker on WSL 2

1 · Ariya Hidayat · June 30, 2019, 10:16 p.m.
Now that WSL 2 packs a true Linux kernel and supports Linux containers (via Docker), it can be a perfect setup to perform application cross compilations. While Docker for Windows will soon support WSL 2, it is just easier to use WSL 2 as is, install Docker, and use it. In case you are new to the wonderful world of WSL, check the documentation to have it installed. Note that for WSL 2, you need to be using Windows Insiders for now. Once Ubuntu 18.04 is installed (the default for WSL), you can ve...