I've created a .NET core web app from VS2017
Added docker support
Run via docker compose from VS
Received this error
MSB4018 The "PrepareForLaunch" task failed unexpectedly.
Microsoft.DotNet.Docker.CommandLineClientException: Creating network "dockercompose3401809455_default" with the default driver
Building webapplication1
Creating dockercompose3401809455_webapplication1_1
ERROR: for webapplication1 Cannot start service webapplication1: error while creating mount source path '/C/Users/admin/clrdbg': mkdir /C/Users/admin/clrdbg: permission denied
Encountered errors while bringing up the project..
I have
- Enabled sharing on my C:\
- Checked C:\ in docker's sharing settings
What else am I missing?
Here's the docker compose yml
version: '2'
services:
webapplication1:
image: webapplication1:dev
build:
args:
source: ${DOCKER_BUILD_SOURCE}
environment:
- DOTNET_USE_POLLING_FILE_WATCHER=1
volumes:
- ./WebApplication1:/app
- ~/.nuget/packages:/root/.nuget/packages:ro
- ~/clrdbg:/clrdbg:ro
entrypoint: tail -f /dev/null
labels:
- "com.microsoft.visualstudio.targetoperatingsystem=linux"