for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Windows containers fail to start after updating to Docker Desktop v4.50.0 — “The container image contains a layer with an unrecognized format.”

Open arminShv opened this issue 1 year ago • 13 comments

Description

After updating Docker Desktop from v4.49.0 to v4.50.0, I can no longer start any of my containers. Each attempt results in the following error message: "hcs::CreateComputeSystem c5440df8d36ccea11ed7356155fe05ef919058c980dea6f12ba9641a79b5d2f2: The container image contains a layer with an unrecognized format."

{
"Id": "c5440df8d36ccea11ed7356155fe05ef919058c980dea6f12ba9641a79b5d2f2",
	"Created": "2025-08-07T14:46:06.529714Z",
	"Path": "powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; .\\start -sa_password $env:sa_password -ACCEPT_EULA $env:ACCEPT_EULA -attach_dbs \\\"$env:attach_dbs\\\" -Verbose",
	"Args": [],
	"State": {
		"Status": "exited",
		"Running": false,
		"Paused": false,
		"Restarting": false,
		"OOMKilled": false,
		"Dead": false,
		"Pid": 0,
		"ExitCode": 128,
		"Error": "hcs::CreateComputeSystem c5440df8d36ccea11ed7356155fe05ef919058c980dea6f12ba9641a79b5d2f2: The container image contains a layer with an unrecognized format.",
		"StartedAt": "2025-11-11T08:04:14.9517707Z",
		"FinishedAt": "2025-11-12T07:55:24.4939076Z",
		"Health": {
			"Status": "starting",
			"FailingStreak": 0,
			"Log": [
				{
					"Start": "2025-11-11T09:01:45.5201585+01:00",
					"End": "2025-11-11T09:01:48.078408+01:00",
					"ExitCode": 0,
					"Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
				},
				{
					"Start": "2025-11-11T09:02:18.4095149+01:00",
					"End": "2025-11-11T09:02:20.465041+01:00",
					"ExitCode": 0,
					"Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
				},
				{
					"Start": "2025-11-11T09:02:50.4748771+01:00",
					"End": "2025-11-11T09:02:52.179421+01:00",
					"ExitCode": 0,
					"Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
				},
				{
					"Start": "2025-11-11T09:03:22.1903664+01:00",
					"End": "2025-11-11T09:03:24.1348164+01:00",
					"ExitCode": 0,
					"Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
				},
				{
					"Start": "2025-11-11T09:03:54.1405247+01:00",
					"End": "2025-11-11T09:03:55.4230058+01:00",
					"ExitCode": 0,
					"Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
				}
			]
		}
	},
......

To troubleshoot, I deleted all my images and tried pulling them again, but a similar error appeared during the pull process as well: "hcsshim::PrepareLayer failed in Win32: The container image contains a layer with an unrecognized format. (0xc0370112)"

Reproduce

  1. Update Docker Desktop to v4.50.0
  2. Try to start any Windows container

Expected behavior

Containers should start as before without error.

docker version

Client:
 Version:           28.5.1
 API version:       1.51
 Go version:        go1.24.8
 Git commit:        e180ab8
 Built:             Wed Oct  8 12:19:16 2025
 OS/Arch:           windows/amd64
 Context:           desktop-windows

Server: Docker Desktop 4.50.0 (209931)
 Engine:
  Version:          28.5.1
  API version:      1.51 (minimum version 1.24)
  Go version:       go1.24.8
  Git commit:       f8215cc
  Built:            Wed Oct  8 12:16:52 2025
  OS/Arch:          windows/amd64
  Experimental:     false

docker info

Client:
 Version:    28.5.1
 Context:    desktop-windows
 Debug Mode: false
 Plugins:
  ai: Docker AI Agent - Ask Gordon (Docker Inc.)
    Version:  v1.9.11
    Path:     C:\Program Files\Docker\cli-plugins\docker-ai.exe
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.29.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.40.3-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.45
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Docker Inc.)
    Version:  v0.2.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.31
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  mcp: Docker MCP Plugin (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Users\...\.docker\cli-plugins\docker-mcp.exe
  model: Docker Model Runner (Docker Inc.)
    Version:  v0.1.46
    Path:     C:\Program Files\Docker\cli-plugins\docker-model.exe
  offload: Docker Offload (Docker Inc.)
    Version:  v0.5.10
    Path:     C:\Program Files\Docker\cli-plugins\docker-offload.exe
  sandbox: Docker Sandbox (Docker Inc.)
    Version:  v0.5.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sandbox.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.18.3
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 3
  Running: 0
  Paused: 0
  Stopped: 3
 Images: 4
 Server Version: 28.5.1
 Storage Driver: windowsfilter
  Windows:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics internal l2bridge l2tunnel nat null overlay private transparent
  Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Default Isolation: hyperv
 Kernel Version: 10.0 26200 (26100.1.amd64fre.ge_release.240331-1435)
 Operating System: Microsoft Windows Version 25H2 (OS Build 26200.7171)
 OSType: windows
 Architecture: x86_64
 CPUs: 12
 Total Memory: 31.64GiB
 Name: [My Computer's Name]
 ID: 364ab589-70d1-4bbd-b2c7-bcbc60f3c2f0
 Docker Root Dir: C:\ProgramData\Docker
 Debug Mode: true
  File Descriptors: -1
  Goroutines: 59
  System Time: 2025-11-12T17:34:23.7456731+01:00
  EventsListeners: 8
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  ma-nas-marabu.nexus.int:5500
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Diagnostics ID

71037795-F1EE-4E7E-8326-FA86FC685DCA/20251112164635

Additional Info

OS: Windows 11 25H2

arminShv avatar Nov 12 '25 17:11 arminShv

I get similar problem with win 22H2 win 10 Pro 64. Docker needs to raise the bar guys

blavatsky3 avatar Nov 14 '25 06:11 blavatsky3

Same issue for me: Windows Update last night, now Windows Containers won't work anymore with this error.

Itja avatar Dec 10 '25 15:12 Itja

Same issue for me: Windows Update last night, now Windows Containers won't work anymore with this error.

I have this same issue following an update last night. Docker Desktop updated to 4.54.0 as well as Windows KB5072033 - I removed KB5072033 and the containers now start as expected

philbarker-tnp avatar Dec 10 '25 16:12 philbarker-tnp

I had the same thing. After clearing out the containers and images and recreating them, they ran as normal.

PeterConijn avatar Dec 11 '25 09:12 PeterConijn

Same issue - containers suddenly gone. Removing Windows KB5072033, as recommended above, solved the issue, but at some point I expect to be forced to do the Windows security update. Hence, please provide a solution for this.

petmoe avatar Dec 12 '25 08:12 petmoe

Same issue using 4.54.0 version. Uninstalling KB5072033 did the trick. It is probably MS who should fix the issue, not docker...

RadekZebrowski avatar Dec 12 '25 11:12 RadekZebrowski

I'm using just the engine. Try upgrading to latest (29.1.2) and still had issue. Downgraded to version shipped with 4.49 (28.5.1) and had same issue. Did not restart or clear out images and rebuild containers, but those failed. Updated to latest engine (29.1.2) and removed KB5072033 and had to reboot. Container started after reboot.

BrianLakstins avatar Dec 12 '25 16:12 BrianLakstins

Same here, uninstalling KB5072033 helped.

NH2501 avatar Dec 15 '25 08:12 NH2501

I'm using just the engine. Try upgrading to latest (29.1.2) and still had issue. Downgraded to version shipped with 4.49 (28.5.1) and had same issue. Did not restart or clear out images and rebuild containers, but those failed. Updated to latest engine (29.1.2) and removed KB5072033 and had to reboot. Container started after reboot.

Hi @BrianLakstins , I'm having the exact same issue. Wondering if you've got any problems after removing KB5072033? I'm working with my org's VM so I'm not sure if I should/could remove such a security update. Thanks!

Handler for POST /containers/0f46df32a5c04c19a5544110c81c3879efb44895847f77690ac36263fdde7801/start returned error: hcsshim::PrepareLayer failed in Win32: The container image contains a layer with an unrecognized format. (0xc0370112)

cla11664 avatar Dec 15 '25 13:12 cla11664

This is not a screenshot of the computer having the problem, it shows where you go to uninstall.

Image

Mine got reinstalled the next day, so you probably need to do this too:

Image

BrianLakstins avatar Dec 15 '25 13:12 BrianLakstins

Hi guys,

My IT after unistalling the problematic update used a microsoft tool to prevent it to be installed again.

https://www.prajwaldesai.com/show-or-hide-updates-in-windows-11/

oscarfernandezkurago avatar Dec 16 '25 08:12 oscarfernandezkurago

I encountered the same issue yesterday after my Windows 11 25H2 installation received the KB5072033 update while trying to run the Windows Server Core ltsc2025 image.

Because I didn’t want to uninstall the KB5072033 update, I suspected that Docker’s cached container layers in C:\ProgramData\Docker\windowsfilter might be stale (especially since my system version changed to 10.0.26200.7462).

Using Docker Desktop 4.54.0, I resolved the problem by purging data for both Hyper-V and Windows containers via the Troubleshooting dialog: Image

After that, I was able to successfully run the latest Windows Server Core image:

docker run --rm -it mcr.microsoft.com/windows/servercore:ltsc2025

Image output:

Microsoft Windows [Version 10.0.26100.7462]
(c) Microsoft Corporation. All rights reserved.

C:\>

alexandre-pma avatar Dec 16 '25 13:12 alexandre-pma

I also encountered this problem in my self-hosted Kubernetes cluster, and I finally solved it by running crictl rmi --all to clean up all images and then restarting the computer.

jing8956 avatar May 18 '26 06:05 jing8956