Hyper-V virtual machine with Server 2016 installed as the guest OS.
I installed the Docker Engine and Compose:
Install-PackageProvider -Name NuGet -Force
Install-Module -Name DockerMsftProvider -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Invoke-WebRequest “https://github.com/docker/compose/releases/download/1.15.0-rc1/docker-compose-Windows-x86_64.exe” -UseBasicParsing -OutFile $Env:ProgramFiles\docker\docker-compose.exe
I was able to create an image and container using power shell, the next thing i wanted to try was using docker-compose within Visual Studio on this environment. I just made a simple ASP.NET Core Web Application and enabled docker support on project creation.
I am running into this error when I try to build the project using Docker:
1>ERROR: for dockercompose2190441552_azureasp.netcontainertestcompose_1 Cannot create container for service azureasp.netcontainertestcompose: invalid volume spec “/app”: invalid volume specification: '\app’
1>ERROR: for azureasp.netcontainertestcompose Cannot create container for service azureasp.netcontainertestcompose: invalid volume spec “/app”: invalid volume specification: ‘\app’
My underlying question here is when using visual studio does it assume the target is linux and not a windows container?