Hello,
The last 4 times I have rebooted my computer, I can no longer publish to Azure Container Registry after the reboot. I’ve been publishing to the very same container over a 3 year period without issue until last week. The only way I’ve been able to fix it is to uninstall docker desktop for Windows then re-install. Does anyone have a fix for this? Thank you in advance.
Failed to initialize: unable to resolve docker endpoint: context “desktop-linux”: context not found: open C:\Users\redacted\AppData\Local\Temp\7408f398aca84b7c91689515caf11602\contexts\meta\fe9c6bd7a66301f49ca9b6a70b217107cd1284598bfc254700c989b916da791e\meta.json: The system cannot find the path specified.
A diagnostic log has been written to the following location:
“C:\Users\redacted\AppData\Local\Temp\tmpE9A1.tmp” (contents of the file is below)
6/17/2024 10:12:58 AM
Microsoft.WebTools.Azure.Publish.Docker.DockerCommandException: Running the docker.exe tag command failed.
Failed to initialize: unable to resolve docker endpoint: context “desktop-linux”: context not found: open C:\Users\redacted\AppData\Local\Temp\7408f398aca84b7c91689515caf11602\contexts\meta\fe9c6bd7a66301f49ca9b6a70b217107cd1284598bfc254700c989b916da791e\meta.json: The system cannot find the path specified.
at Microsoft.WebTools.Azure.Publish.Docker.DockerOperations.ThrowDockerCommandError(String dockerCommand, StringBuilder errorOutput)
at Microsoft.WebTools.Azure.Publish.Docker.DockerOperations.d__6.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 Microsoft.WebTools.Azure.Publish.Docker.DockerPublish.d__3.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 Microsoft.WebTools.Azure.Publish.ContainerRegistry.ManageContainerRegistry.d__13.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 Microsoft.WebTools.Azure.Publish.NewFx.Profiles.ContainerPushPublishStep.d__11.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Publish.Framework.Profiles.ProjectProfilesManager.d__44.MoveNext()