Open Misiu opened 5 years ago
Hey @Misiu , this is related to this Developer Community issue, and should be fixed together with it.
@bwateratmsft thank You for the link :)
Hello, I have same error on lastest community version 2019 (home) and i have tested at work with vs 2019 pro ..... => Version Visual Studio Pro 2019 (16.3.3) et Visual Studio Community 2019 (16.3.3).
Any solution ?
thx
Hitting the same wall. For custom container registry should be option to publish with already logged account.
Same error.
Microsoft Visual Studio Enterprise 2019 Version 16.5.4
We are trying to publish to a Docker instance on a network VM.
Same error, Trying to publish container to Harbor instance. It keeps appending "/V2/" to the URL:
VS 2019 16.4.3
Any thoughts on this yet?
Same issue with me when I try to publish via Visual Studio 2019 to ACR. My Docker Desktop is of version - 2.5.0.1 and VS version is - 16.7.6
Getting below error:
Publish has encountered an error.
Running the docker.exe login command failed.
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
A diagnostic log has been written to the following location:
"C:\Users\Admin\AppData\Local\Temp\tmp2719.tmp"
Full stack trace file: tmp4ED7.txt
I've managed it by adding the my custom repository hostname/ip in the Settings of my local docker engine. Create a section called insecure-registries. Visual studio uses your local docker installation to publish an image to a remote repo. (learned the hard way)
This is an example of docker Settings => Docker Engine (on windows)
{
"registry-mirrors": [],
"insecure-registries": [
"MyRepo:5000"
],
"debug": true,
"experimental": false
}
@jvanlangen Thanks but I am actually trying to publish to Azure Container Registry (ACR) in the cloud and not local repository. I have created a new issue on this link.
I however tried your way and added "myrepo.azurecr.io" but it did not work. If you have any suggestions for me, kindly let me know. Thank you.
I've managed it by adding the my custom repository hostname/ip in the Settings of my local docker engine. Create a section called insecure-registries. Visual studio uses your local docker installation to publish an image to a remote repo. (learned the hard way)
This is an example of docker Settings => Docker Engine (on windows)
{ "registry-mirrors": [], "insecure-registries": [ "MyRepo:5000" ], "debug": true, "experimental": false }
This was exactly my problem. Thanks.
Same error 5 years later... Probably best not to count on Microsoft..
I have a custom repository that I want to deploy my docker image to. I've added my custom repository URL into Docker Settings:
I've created a simple ASP.NET Core 2.1 project in Visual Studio 15.8.9.
This is my Dockerfile:
this is my pubxml file:
When I click on Publish I get this error:![docker_publish_error](https://user-images.githubusercontent.com/1741838/47997767-498b1700-e0fd-11e8-96d3-beceefc5278c.png)
and here are the details from diagnostic log file:
As You can see during publish VS tries to access https://172.18.3.83:443, but I have insecure repository so it should use port 80 instead.
EDIT: I've managed to push my image using CLI:
but ideally I would like to be able to do the same from Visual Studio.