Docker commit errror: hcsshim::ImportLayer failed in Win32: The system cannot find the path specified

I am seeing this issue when trying to "docker commit":
“hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3) layerId=\?\C:\ProgramData\docker\windowsfilter\8965301e9e9735141b479ed3cc873107ef16c4bfbb3dc0e54d0b4827d034722a flavour=1 folder=C:\windows\TEMP\hcs510325079”

Windows version: Windows Server 2016 GA (10.0.14393).

Docker version:
Client:
Version: 17.03.1-ee-3
API version: 1.27
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64

Server:
Version: 17.03.1-ee-3
API version: 1.27 (minimum version 1.24)
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64
Experimental: false

Base container
I’m starting off from a “microsoft/mssql-server-windows-express” as my base Docker container and installing some additional software in the container.

I have tried various things such as:

  • stopping and removing any other containers on the host machine
  • rebooting
  • retrying several times

But nothing has worked

1 Like

@cosmosaws have you ever found a solution for this? I’m getting the same error repeatedly with a simple image containing an ASP.NET app, based off microsoft/aspnet:4.7.1-windowsservercore-1709, specifically in Kubernetes (on Azure).

1 Like

For everyone experiencing this issue using Azure Windows Server 2016, make sure you are using the new semi-annual release channel of Windows Server 2016 which is currently “Windows Server 2016, version 1709”. As per the following article, you cannot upgrade an existing Windows Server 2016 LTSC VM to this version. Many of the latest microsoft docker images require 1709 as a base dependency like the asp-net and dotnet framework images.

Side Note: The default dockerfile created by Visual Studio will use the 1709 images.

https://blogs.technet.microsoft.com/windowsserver/2017/10/26/faq-on-windows-server-version-1709-and-semi-annual-channel/

I am getting the same when trying to commit an image from a stopped container based on an microsoft/mssql-server-windows-express:latest image.