microsoft / Windows-Containers

Welcome to our Windows Containers GitHub community! Ask questions, report bugs, and suggest features -- let's work together.
MIT License
423 stars 64 forks source link

Pull failure, “invalid hard link in layer”, when pulling windows:10.0.19042.1889 #511

Open JianhongGao opened 4 months ago

JianhongGao commented 4 months ago

Please fill out all the sections below for bug issues, otherwise it'll be closed as it won't be actionable for us to address.

Describe the bug When execute "docker pull mcr.microsoft.com/windows:10.0.19042.1889", it failed.

The execution output: 10.0.19042.1889: Pulling from windows f26dc4584b4d: Pull complete ad7b58431666: Extracting [==================================================>] 3.306 GB/3.306 GB failed to register layer: re-exec error: exit status 1: output: invalid hard link in layer

The Docker for Windows log: [15:49:15.291][ApiProxy ][Info ] proxy >> GET /_ping [15:49:15.291][ApiProxy ][Info ] Dial name pipe \.\pipe\docker_engine_windows [15:49:15.291][ApiProxy ][Info ] Successfully dialed name pipe \.\pipe\docker_engine_windows [15:49:15.292][ApiProxy ][Info ] proxy << GET /_ping [15:49:15.729][ApiProxy ][Info ] proxy >> POST /v1.27/images/create?fromImage=mcr.microsoft.com%2Fwindows&tag=10.0.19042.1889 [15:49:15.729][ApiProxy ][Info ] Dial name pipe \.\pipe\docker_engine_windows [15:49:15.729][ApiProxy ][Info ] Successfully dialed name pipe \.\pipe\docker_engine_windows [16:09:46.056][ApiProxy ][Info ] proxy << POST /v1.27/images/create?fromImage=mcr.microsoft.com%2Fwindows&tag=10.0.19042.1889 [16:09:46.056][WindowsDockerDaemon][Info ] time="2024-06-21T16:09:46.056336600+08:00" level=error msg="Error trying v2 registry: failed to register layer: re-exec error: exit status 1: output: invalid hard link in layer" [16:09:46.056][WindowsDockerDaemon][Info ] time="2024-06-21T16:09:46.056336600+08:00" level=error msg="Attempting next endpoint for pull after error: failed to register layer: re-exec error: exit status 1: output: invalid hard link in layer" [16:11:16.811][WindowsDockerDaemon][Info ] time="2024-06-21T16:11:16.811845600+08:00" level=info msg="Layer sha256:fe97d2fde0ecfd65fa85c3a6046563046bea73f89637f9cdf1b9b60718484cc0 cleaned up" [16:12:42.075][SegmentApi ][Info ] Usage statistic: actionMenuFeedback [16:12:44.405][FeedbackSettings][Info ] Open logs

To Reproduce Step 1: Right click docker icon and click "Switch to Windows containers..." Step 2: open CMD Step 3: docker pull mcr.microsoft.com/windows:10.0.19042.1889

Expected behavior Pull success.

Configuration:

Additional context Add any other context about the problem here.

ntrappe-msft commented 3 months ago

Update: This did not repro on our most recent build. We'll try to see if it does repro on Windows 10.

microsoft-github-policy-service[bot] commented 2 months ago

This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.

microsoft-github-policy-service[bot] commented 3 weeks ago

This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.