You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
4.7.0 fails to start after upgrade from 4.6.1 - Windows Container mode #12652
Docker Desktop fails to start after upgrade from 4.6.1 to 4.7.0.
It looks like it upgraded without issue.
Starting throws an Error: "System.Exception: Paths contain symlinks"
Expected behavior
Docker starts without issue
Information
Windows Version: Windows 10 Pro 20H2
Docker Desktop Version: 4.7.0
WSL2 or Hyper-V backend? Windows Containers
Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No - Physical Machine
Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
System.Exception:
Paths contain symlinks
at Docker.Core.PermissionUtils.CheckPath(String path, Boolean allowDockerAppData) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 250
at Docker.Core.PermissionUtils.ApplyACLOnChildren(ILogger logger, String path, Int32 recurse) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 46
at Docker.Core.PermissionUtils.ApplyACLOnChildren(ILogger logger, String path, Int32 recurse) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 70
at Docker.Core.PermissionUtils.ApplyACLOnChildren(ILogger logger, String path, Int32 recurse) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 70
at Docker.Core.PermissionUtils.ApplyACLOnChildren(ILogger logger, String path, Int32 recurse) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 70
at Docker.Core.PermissionUtils.ApplyACLOnChildren(ILogger logger, String path, Int32 recurse) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 70
at Docker.Backend.HttpAPI.WindowsContainersController.FixPermissions(String path) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Backend\HttpAPI\WindowsContainersController.cs:line 72
at Docker.Backend.HttpAPI.WindowsContainersController.Start(WindowsContainerStartRequest request) in C:\workspaces\PR-17669\src\github.com\docker\pinata\win\src\Docker.Backend\HttpAPI\WindowsContainersController.cs:line 35
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__0(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()
@ebriney
Running the given command looks like it goes into an infinite loop, printing many many files and does not seem to stop
A quick snapshot during execution gives this:
Directory of C:\ProgramData\Docker\windowsfilter\025959927e5eba113a9c47a58491a2b8a342f6e99300c7272d09ee94547461dc\Files\Users\All Users\Docker\windowsfilter\03ed636c65d64e5b71d80649aa8ba26fcc646762c8f39f7b83b5d9c2060b6a84\Files\Users
03/03/2022 10:32 AM <DIR> Administrator
12/07/2019 11:00 AM <SYMLINKD> All Users [C:\ProgramData]
03/03/2022 10:32 AM <DIR> ContainerUser
03/03/2022 10:32 AM <DIR> Default
12/07/2019 11:00 AM <JUNCTION> Default User [C:\Users\Default]
12/07/2019 10:49 AM (174) desktop.ini
1 File(s) 174 bytes
Directory of C:\ProgramData\Docker\windowsfilter\025959927e5eba113a9c47a58491a2b8a342f6e99300c7272d09ee94547461dc\Files\Users\All Users\Docker\windowsfilter\03ed636c65d64e5b71d80649aa8ba26fcc646762c8f39f7b83b5d9c2060b6a84\Files\Users\All Users
03/19/2022 12:24 AM <JUNCTION> Application Data [C:\ProgramData]
03/19/2022 12:24 AM <JUNCTION> Desktop [C:\Users\Public\Desktop]
03/19/2022 12:24 AM <JUNCTION> Documents [C:\Users\Public\Documents]
03/19/2022 12:24 AM <JUNCTION> Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]
03/19/2022 12:24 AM <JUNCTION> Templates [C:\ProgramData\Microsoft\Windows\Templates]
0 File(s) 0 bytes
Ok, thanks, it will be enough to do a fix, not sure why I didn't see it with my tests on windows containers.
What image do you use?
I'll send you ASAP a build with a fix (hopefully today).
Are you stuck?
If you can lose your layers just uninstall this version and reinstall previous version: https://desktop.docker.com/win/main/amd64/76265/Docker%20Desktop%20Installer.exe
@ebriney
I base my images off mcr.microsoft.com/dotnet/framework/sdk:latest
No I am not stuck - Uninstalled Docker Desktop and re-installed 4.7.0 and it seems to be working now.
(I think I already lost all layers when I did the factory reset)
I seem to be in the same boat- updated to 4.7.0, first time it loaded up fine, managed to create a container.
However after restarting my pc later in the day and going to start Docker for Windows, the exact same exception was being thrown preventing it from running.
Have resorted to uninstalling and reverting back to 4.6.1 which seems to start up fine again.
I updated another 4.6.1 install with the new patch provided and the upgrade went through without any issues.
Docker upgraded tot 4.7.0 (Build 77294) and started without issues
I am closing this issue since it seems like there is a fix and I have a working install again.
Unfortunately I won't be able to test the exact same setup (upgrading 4.6.1) with a 4.7.1 since all my installs are upgrade to 4.7.0 already
I'm still getting exception on try to install Docker
Application: Docker Desktop Installer.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Exception at Docker.Core.PermissionUtils.CheckPath(System.String, Boolean) at Docker.Core.PermissionUtils.CheckACLBeforeRestrictAndCheckSymlink(Docker.Core.ILogger, System.String) at Docker.Core.PermissionUtils.ApplyACLOnChildren(Docker.Core.ILogger, System.String, Int32) at Docker.Core.PermissionUtils.RemoveGlobalWrite(Docker.Core.ILogger, System.String) at CommunityInstaller.Program.Main(System.String[])
Version: 4.7.1 (77678) Sha1: Started on: 2022/05/03 06:54:10.019 Resources: C:\Users\eshvatskyi\Downloads\resources OS: Windows 10 Enterprise Edition: Enterprise Id: 2009 Build: 19043 BuildLabName: 19041.1.amd64fre.vb_release.191206-1406 File: C:\Users\..\AppData\Local\Docker\install-log.txt CommandLine: "C:\Users\..\Downloads\Docker Desktop Installer.exe" You can send feedback, including this log file, at https://github.com/docker/for-win/issues [2022-05-03T06:54:10.593861000Z][ManifestAndExistingInstallationLoader][Info ] No install path specified, looking for default installation registry key [2022-05-03T06:54:10.614893200Z][Installer ][Info ] No installation found [2022-05-03T06:54:10.631863300Z][ManifestAndExistingInstallationLoader][Info ] Not run as admin, relaunching with UAC prompt
Activity
CJCombrink commentedon Apr 8, 2022
With the error shown I could "Switch to Linux Containers..." from the taskbar icon.
This enabled Docker Desktop to start again.
Switching back to "Windows Containers" throws the same exception again.
CJCombrink commentedon Apr 8, 2022
The exception is:
ebriney commentedon Apr 8, 2022
@CJCombrink Can you run this command in an admin cmd.exe please:
dir /AL /S C:\ProgramData\DockerCJCombrink commentedon Apr 8, 2022
@ebriney
Running the given command looks like it goes into an infinite loop, printing many many files and does not seem to stop
A quick snapshot during execution gives this:
ebriney commentedon Apr 8, 2022
Ok, thanks, it will be enough to do a fix, not sure why I didn't see it with my tests on windows containers.
What image do you use?
I'll send you ASAP a build with a fix (hopefully today).
Are you stuck?
If you can lose your layers just uninstall this version and reinstall previous version: https://desktop.docker.com/win/main/amd64/76265/Docker%20Desktop%20Installer.exe
CJCombrink commentedon Apr 8, 2022
@ebriney
I base my images off
mcr.microsoft.com/dotnet/framework/sdk:latestNo I am not stuck - Uninstalled Docker Desktop and re-installed 4.7.0 and it seems to be working now.
(I think I already lost all layers when I did the factory reset)
fidokuba commentedon Apr 8, 2022
I seem to be in the same boat- updated to 4.7.0, first time it loaded up fine, managed to create a container.
However after restarting my pc later in the day and going to start Docker for Windows, the exact same exception was being thrown preventing it from running.
Have resorted to uninstalling and reverting back to 4.6.1 which seems to start up fine again.
ebriney commentedon Apr 8, 2022
@CJCombrink @fidokuba I have a build with a patch that seems to work, can you test it and give me yourfeedback:
https://desktop-stage.docker.com/win/main/amd64/77294/Docker%20Desktop%20Installer.exe
Thanks, have a good week-end.
MichaelKilden commentedon Apr 9, 2022
Same problem on startup: Docker.Core.PermissionUtils.ApplyACLOnChildren...
Patch solved my problem. Existing windows containers are running again.
taurisjoe commentedon Apr 10, 2022
Thank you @ebriney for this quick fix. Your patch worked for me.
CJCombrink commentedon Apr 11, 2022
@ebriney
Sorry for only being able to test now.
I updated another 4.6.1 install with the new patch provided and the upgrade went through without any issues.
Docker upgraded tot 4.7.0 (Build 77294) and started without issues
mat007 commentedon Apr 11, 2022
Thank you for confirming the fix everyone, we will release a Docker Desktop 4.7.1 with it.
CJCombrink commentedon Apr 11, 2022
I am closing this issue since it seems like there is a fix and I have a working install again.
Unfortunately I won't be able to test the exact same setup (upgrading 4.6.1) with a 4.7.1 since all my installs are upgrade to 4.7.0 already
ebriney commentedon Apr 19, 2022
Fixed in 4.7.1: https://desktop.docker.com/win/main/amd64/77678/Docker%20Desktop%20Installer.exe
eshvatskyi commentedon May 3, 2022
I'm still getting exception on try to install Docker
Application: Docker Desktop Installer.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Exception at Docker.Core.PermissionUtils.CheckPath(System.String, Boolean) at Docker.Core.PermissionUtils.CheckACLBeforeRestrictAndCheckSymlink(Docker.Core.ILogger, System.String) at Docker.Core.PermissionUtils.ApplyACLOnChildren(Docker.Core.ILogger, System.String, Int32) at Docker.Core.PermissionUtils.RemoveGlobalWrite(Docker.Core.ILogger, System.String) at CommunityInstaller.Program.Main(System.String[])Version: 4.7.1 (77678) Sha1: Started on: 2022/05/03 06:54:10.019 Resources: C:\Users\eshvatskyi\Downloads\resources OS: Windows 10 Enterprise Edition: Enterprise Id: 2009 Build: 19043 BuildLabName: 19041.1.amd64fre.vb_release.191206-1406 File: C:\Users\..\AppData\Local\Docker\install-log.txt CommandLine: "C:\Users\..\Downloads\Docker Desktop Installer.exe" You can send feedback, including this log file, at https://github.com/docker/for-win/issues [2022-05-03T06:54:10.593861000Z][ManifestAndExistingInstallationLoader][Info ] No install path specified, looking for default installation registry key [2022-05-03T06:54:10.614893200Z][Installer ][Info ] No installation found [2022-05-03T06:54:10.631863300Z][ManifestAndExistingInstallationLoader][Info ] Not run as admin, relaunching with UAC promptmat007 commentedon May 3, 2022
Hi @eshvatskyi, can you try this internal build?
eshvatskyi commentedon May 3, 2022
I could try, if you about link above my comment it was not success try .
mat007 commentedon May 3, 2022
It’s a different build, we’ve fixed a problem with the detection of symlinks in between.
eshvatskyi commentedon May 3, 2022
@mat007 my \DockerDesktop - is a link on second herd-drive
I will remove this link thanks
docker-robott commentedon Jun 2, 2022
Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked