0

I am new to Docker and I am trying to setup and build docker image on my local Windows 10 machine. I created a simple .Net program and added Docker support to it. I also installed Docker Desktop on my machine. When I load my project with VS.Net 2019, I got the following error message: "A non-critical error occurred while getting containers ready. Your project will continue to function normally. The error was: Your Docker server host is configured for 'Linux', however the docker-compose project targets 'Windows'". My question is - how do I change my Docker server host configuration from Linux to Windows?

1
  • Docker Compose does not "target" a specific OS, so what exactly is showing that error? And Docker Desktop is not needed for Linux, so unclear to me how it would configured for such if you're actually on a Windows machine Commented Aug 30, 2022 at 20:01

1 Answer 1

1

I'm assuming you have Docker Desktop deployed on your host - you can change between Windows and Linux containers by selecting the Docker icon from the icons tray, and click the option to switch: enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.