I’m writing a docker compose file to build two images, one is a windows image and the other is linux.
I keep running into errors related to the linux image being built while docker is set for Windows containers.
My question is: can I use docker compose to build images from multiple platforms (i.e. Linux & Windows)?
Each image can be built separately using “docker run…” and switching Docker Desktop from Windows containers to Linux containers but I’m looking for a way to run both from a single docker compose file or at least find out if it’s even possible.
Thanks.
Windows 10 Pro v21H2
WSL2 (update 5.10.60.1)
Docker desktop 4.6.0