Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio 2017 docker error running app

I have trying to execute a newly asp net core project from inside visual studio 2017, but always get this error:

Build path either does not exists, is not accesible, or is not a valid URL

enter image description here

Any idea what the problem is?

like image 539
ferpega Avatar asked Apr 03 '17 21:04

ferpega


People also ask

Can I run Visual Studio in a Docker container?

The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set.

How do I run a docker file in Visual Studio?

Open the project in Visual Studio, and choose one of the following options: Select Docker Support from the Project menu. Right-click the project in Solution Explorer and select Add > Docker Support.


2 Answers

In my particular case, I was working with Docker for Windows from Edge channel. So I just uninstalled it and installed the latest release from Stable channel https://docs.docker.com/docker-for-windows/install/#download-docker-for-windows. It worked out and the problem went away.

like image 124
Artur Karbone Avatar answered Oct 28 '22 14:10

Artur Karbone


I was using Docker for Windows Server 2016 (Edge channel) and got this issue as well. However I was unable to switch to anything. After finding issue on github here: https://github.com/docker/compose/issues/4710 It was apparently a bug in relative paths.

One of the developers released a new binary for docker-compose.exe(see previous link) for which you can replace manually in your local docker installation. After that it worked for me again.

like image 44
Lars Celie Avatar answered Oct 28 '22 15:10

Lars Celie