title: Docker Compose failed to build - Filesharing has been cancelled - eShopOnContainers
body: <p>I am having trouble running a sample ASP.NET MVC Core application provided by a template from Microsoft
  (<a href="https://github.com/dotnet-architecture/eShopOnContainers" rel="noreferrer">eShopOnContainers</a>).</p>
  
  <p>When I trying to run the project using Visual Studio 2019, the below error is popped.</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Error DT1001  ERROR: for payment-api  Cannot create container for
    service payment-api: status code not OK but 500: {"Message":"Unhandled
    exception: Filesharing has been cancelled","StackTrace":"   at
    Docker.ApiServices.Mounting.FileSharing.d__6.MoveNext()
    in
    C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:line
    0\r\n--- End of stack trace from previous location where exception was
    thrown ---\r\n   at
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n<br>
    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)\r\n   at
    Docker.ApiServices.Mounting.FileSharing.d__4.MoveNext() in
    C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:line
    47\r\n--- End of stack trace from previous location where exception
    was thrown ---\r\n   at
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n<br>
    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)\r\n   at
    Docker.HttpApi.Controllers.FilesharingController.d__2.MoveNext()
    in
    C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.HttpApi\Controllers\FilesharingController.cs:line
    21\r\n--- End of stack trace from previous location where exception
    was thrown ---\r\n   at
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n<br>
    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)\r\n   at
    System.Threading.Tasks.TaskHelpersExtensions.d__1`1.MoveNext()\r\n---
    End of stack trace from previous location where exception was thrown
    ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n<br>
    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)\r\n   at
    System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext()\r\n---
    End of stack trace from previous location where exception was thrown
    ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n<br>
    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)\r\n   at
    System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext()\r\n---
    End of stack trace from previous location where exception was thrown
    ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n<br>
    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)\r\n   at
    System.Web.Http.Dispatcher.HttpControllerDispatcher.d__15.MoveNext()"}
    If the error persists, try restarting Docker
    Desktop.  docker-compose  C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Enterprise\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets  384</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/5qd3r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5qd3r.png" alt="Erroe_log"></a></p>
  
  <p>Here is my setup,</p>
  
  <ul>
  <li>Microsoft Visual Studio Enterprise 2019 Version 16.6.1</li>
  <li>docker desktop version 2.3.03</li>
  </ul>
  
  <p>Does anyone have any idea to fix this?</p>
  
  <p>[UPDATE]</p>
  
  <p>The main error is: </p>
  
  <pre><code>Docker.ApiServices.Mounting.FileSharing.&lt;ShareAsync&gt;d__4.MoveNext() in
  &gt; C:\\workspaces\\stable-2.3.x\\src\\github.com\\docker\\pinata\\win\\src\\Docker.ApiServices\\Mounting\\FileSharing.cs
  </code></pre>