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
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
 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
Logging Driver: json-file
 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
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
Experimental: false
Insecure Registries:
Live Restore Enabled: false
Product License: Community Engine