Hello
I have been trying for the last few days to run Linux containers on one of Travis’ Windows build options.
Unfortunately, I can’t seem to bring it to work.
I tried a few options already, which didn’t work:
- I have tried to install docker-desktop + docker-cli and switch to LinuxEngine (using flags SwitchDaemon and SwitchLinuxEngine - I tried both but none did work). See https://travis-ci.com/github/adobe/asset-compute-example-workers/jobs/344516974
- I also tried to “force” the docker service to restart to take changes in effect, but it didn’t seem to care. See https://travis-ci.com/github/adobe/asset-compute-example-workers/jobs/346300138
- I tried to refresh the environment to get latest values of env variables (in case it has an effect), but it didn’t work. See https://travis-ci.com/github/adobe/asset-compute-example-workers/jobs/344520519
- I tried to use the platform flag for docker… But this needs experimental features activated (and they aren’t). See https://travis-ci.com/github/adobe/asset-compute-example-workers/jobs/346149840
Sooner or later, when I will try to run a Linux-based container, I will get the error docker: image operating system "linux" cannot be used on this platform.
.
In the last few builds, to simplify things, I just tried to pull a busybox (because this is a Linux image without corresponding Windows image), which triggered the error: no matching manifest for windows/amd64 10.0.17763 in the manifest list entries
(which basically means, as I’m using an image that has only Linux versions, that it can’t run Linux).
Would anyone have an idea how I could run Linux containers in a Windows build?
My test process needs to run for some parts inside Linux containers, and the goal is to verify during the build process that this also works on Windows (aka tests should run in a Linux container on the Windows build machine, and ideally end with success).
Build links: See any build in this PR https://github.com/adobe/asset-compute-example-workers/pull/2. The commit message mostly describes what the build is trying to achieve.
Thank you for the help.