VS 2017 and Docker: Operation aborted VS 2017 and Docker: Operation aborted docker docker

VS 2017 and Docker: Operation aborted


I was having the same issue. I found this forum post which suggests the fix is either:

  1. Reset the credentials on the shared drive settings for Docker
  2. Delete the [stale] microsoft/aspnetcore:2.0 image and pull the latest again from DockerHub

The first suggestion did not work for me, but the second did. I probably didn't need to do this, but I also nuked my existing containers and images for the project I was working on.

The Visual Studio build process with Docker support enabled will automatically pull microsoft/aspnetcore:2.0 if the image is not found locally. So, it's easiest to remove the cached image and let the build process pull it down for you.

In order to see local images, from the command line:

docker images

If you see microsoft/aspnetcore:2.0, then remove the image from your local cache:

docker rmi microsoft/aspnetcore:2.0

After that, when you next build... all is good again.


Same issue here, but aspnetcore 1.1 and I couldn't check the shared drive in Docker-Settings (Issue 579: https://github.com/docker/for-win/issues/579). I reinstalled Docker and now it works like a charm.