Visualstudio-docs: System.Exception: Running the docker.exe tag command failed

Created on 30 Jul 2018  Â·  9Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

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)

at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__116.MoveNext()

Got this error while running "Publish" image to ACR. Any ideas?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 visual-studio-dev1prod

Most helpful comment

The issue has gone after upgrading VS to 15.8.1 Community Edition and .NET Core SDK to 2.1.401

All 9 comments

Additional info:

I tested:

  • run Visual Studio as Administrator
  • Create a new ACR
  • Use existing ACR
  • Docker Hub

None of these work for me. Not really sure what I could be doing wrong?

More info:

Tested:

  • both Visual Studio Tools for Kubernetes versions 0.20.20180703.11 and 0.20.20180725.1
    (I only tested Create a new ACR)

(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:

exception

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()
===================

docker

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

image

grubbrr-published-error

image

image

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrikhuber picture patrikhuber  Â·  4Comments

Crono1981 picture Crono1981  Â·  3Comments

wittelw picture wittelw  Â·  3Comments

realbart picture realbart  Â·  3Comments

H35am picture H35am  Â·  4Comments