Visual Studio For Mac Docker

Posted on  by 

Active1 year, 1 month ago

Using Visual Studio with Docker ANZ Coders. Leroy Mason shows you how you can use the Visual Studio 2015 Tools for Docker (preview) to 'F5' your application directly into a Docker Container. SQL Server Development on Mac (Using Docker, Valentina Studio, and Visual Studio for Mac) Tired of depending on Windows to develop SQL Server powered applications? This tutorial is for you. Visual Studio for Mac which was launched in late 2016, replaced Xamarin Studio. While Xamarin Studio was a mobile first IDE, its successor is a mobile first and cloud first IDE that supports various workloads which weren’t present in XS.

I just got a MacBook Pro and am trying to run a dotnet core web api project I created on my Windows PC. I also am learning how to use Docker and am trying to integrate it into my project.

When I right click on my API project and hit Add > Docker Support, a docker-compose project and corresponding .yml file are generated and a Dockerfile is added to my Api project.

This is what the .yml file looks like:

And here is the Dockerfile that is generated:

When I run the solution, using the docker-compose project as the startup, I get the following error:

Any idea what I need to do to get this working? It might be really simple and obvious but I am very new to Docker and Macs so I'm not sure what I'm doing.

arazzyarazzy

Visual Studio Docker Support

1 Answer

Visual Studio For Mac Docker

Add the folder /usr/local/share/dotnet/sdk/NuGetFallbackFolder to the File Sharing list in Docker Preferences. It will work.

Caue GoncalvesCaue Goncalves
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Visual Studio

Not the answer you're looking for? Browse other questions tagged dockerasp.net-coredocker-composedockerfilevisual-studio-mac or ask your own question.

Coments are closed