Docker Community Forums

Share and learn in the Docker community.

Cannot build docker image from .Net Core project

Hi Guys,

I am new in docker world and try to learn it but I hit a wall so far :smiley:
I create an empty ASP.NET CORE API project. and try to build it on docker.

when I hit the debug button I get following error.

1>re-exec error: exit status 1: output: time="2019-02-20T09:31:44-05:00" level=error msg="hcsshim::ImportLayer failed in Win32:
 The system cannot find the path specified. (0x3) path=\\\\?\\C:\\ProgramData\\Docker\\windowsfilter\\265d0b398370d412aba5d9f7815a428086af883cbd0150a93d9824b21beb5edf
 folder=C:\\ProgramData\\Docker\\tmp\\hcs820615311"
1>hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3) 
path=\\?\C:\ProgramData\Docker\windowsfilter\265d0b398370d412aba5d9f7815a428086af883cbd0150a93d9824b21beb5edf folder=C:\ProgramData\Docker\tmp\hcs820615311
1>C:\Users\mnegahi\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.0.2105168\build\Container.targets(255,5):
 error : An error occurred while attempting to build Docker image.

I also run the following command in PowerShell and get the same error as well.
docker build -t firstdemo1 .

here is my docker info:

 Containers: 2
 Running: 0
 Paused: 0
 Stopped: 2
Images: 2
Server Version: 18.09.2
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: ics l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 17134 (17134.1.amd64fre.rs4_release.180410-1804)
Operating System: Windows 10 Pro for Workstations Version 1803 (OS Build 17134.556)
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 15.89GiB
Name: ITX1100W
ID: IJOM:BQVE:LNVT:FSKY:OZCL:TC5O:YNKQ:62DT:X6W4:SQQL:IHXQ:4NHR
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: -1
 Goroutines: 26
 System Time: 2019-02-20T09:39:00.2504516-05:00
 EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine