action-docker-layer-caching
action-docker-layer-caching copied to clipboard
Restoring cache on Windows fails with "...is not a valid parent..." message
Note: For tracking purposes only; this is caused by an issue affecting Docker itself. See: https://github.com/moby/moby/issues/41829
Describe the bug
On Windows, restoring the cache fails with an error message such as: image sha256:6795354d435f[...] is not a valid parent for sha256:bfeb117a8139[...]
To Reproduce
Use this action in a workflow that builds an image FROM mcr.microsoft.com/windows/nanoserver:1809 (other windows images are affected too, eg windows/servercore:ltsc2019)
Note: the image needs to be built in the workflow, pulled images cache/restore without issues.
Expected behavior Cache to load successfully
Debug logs
"C:\Program Files\Git\bin\sh.exe" -c "tar cf - . | docker load"
Loaded image: test_project_scratch:latest
image sha256:6795354d435f89ae3a76f71e9c4e8e8b29b70a69fefaba2b4d13581e20c19d71 is not a valid parent for sha256:bfeb117a81391290c69b33f5b1598f21a5497288247ea0b300900a5a93d7d5d9
Error: The process 'C:\Program Files\Git\bin\sh.exe' failed with exit code 1
Error: Error: The process 'C:\Program Files\Git\bin\sh.exe' failed with exit code 1
at ExecState._setResult (D:\a\action-docker-layer-caching\action-docker-layer-caching\action-dlc\dist\ttsc-dist\main.js\index.js:1035:25)
(Taken from https://github.com/rcowsill/action-docker-layer-caching/runs/1640192546?check_suite_focus=true)
Runner Environment (please complete the following information):
- OS: Microsoft Windows Server 2019 10.0.17763 Datacenter
- Action version: v0.0.11