2018-07-30 16:56:46
System.Exception: Running the docker.exe tag command failed.
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.DockerTag(ProcessStartInfo startInfo, String serverUrlString)
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.<PostPublishAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Got this error while running "Publish" image to ACR. Any ideas?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Additional info:
I tested:
None of these work for me. Not really sure what I could be doing wrong?
More info:
Tested:
(Using Visual Studio Community edition)
I'm getting the same exception when publishing to Azure Container Registry or Web App for Containers using both VS 15.7.6 Community Edition or 15.8.0 Preview-5 Enterprise Edition:
File tmpDF4C.tmp:
8/12/2018 8:27:44 PM
System.Exception: Running the docker.exe tag command failed.
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.DockerTag(ProcessStartInfo startInfo, String serverUrlString)
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.<PostPublishAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__116.MoveNext()
===================
The issue has gone after upgrading VS to 15.8.1 Community Edition and .NET Core SDK to 2.1.401
@spacecat Are you still experiencing this issue after upgrading to the most recent VS release?
This doesn't seem to be a doc issue. It's a product issue that was fixed recently. I think it's OK to close this doc issue now.
Just experienced the same issue:
10/1/2018 4:04:36 PM
Microsoft.VisualStudio.Web.Azure.Publish.Docker.DockerCommandException: Running the docker.exe tag command failed.
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.ThrowDockerCommandError(String dockerCommand)
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.<DockerTagAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.VisualStudio.Web.Azure.Publish.ContainerRegistryProfileVisual.<PostPublishAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__127.MoveNext()
===================
I got the same error when i try to publish my application into an azure container registry from my visual studio professional in windows 10




I am running into the same issue with Visual Studio 2019 Community. I see this is marked as closed - is there a work around for this?
Most helpful comment
The issue has gone after upgrading VS to
15.8.1Community Edition and .NET Core SDK to2.1.401