Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create container for service X: image with reference Y was found but does not match the specified OS platform: wanted: windows, actual: linux #9166

Closed
1 of 2 tasks
cronventis opened this issue Oct 21, 2020 · 2 comments

Comments

@cronventis
Copy link

cronventis commented Oct 21, 2020

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID:

I'm having a docker-compose file (v2.4) that I start with --compatibility up.
In it I have a mix of Windows and Linux Containers.
Each has specified the platform via: platform: linux/platform: windows. I'm running on Windows Containers.
After installing Docker Desktop Community 2.4.2.0, I suddenly get the error "Cannot create container for service X: image with reference Y was found but does not match the specified OS platform: wanted: windows, actual: linux"
After going back to Docker Desktop Community 2.4.1.0, everything is working normal.

@stephen-turner
Copy link
Contributor

@cronventis Thanks for the report. I believe this is a bug in the new beta Engine, which we have included for the first time in 2.4.2.0. It seems very similar to moby/moby#41552, so let's take the discussion there.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants