Aspnetcore.docs: If you follow these instructions you'll get an error about DOCKER_REGISTRY not being set that won't allow you to continue

Created on 22 Jun 2018  Â·  9Comments  Â·  Source: dotnet/AspNetCore.Docs

The documentation should include how to set this and what it does. I.e. if you're using Azure it should either link to instructions to set it or tell you exactly how to do it. Same with Docker.io.

I found other documentation that you need to set an env in the dockerfile. That doesn't work, so I'm blocked.


Document Details

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

Source - Docs.ms

All 9 comments

I am also having the same problem.

I had the same error but it's not a blocking error, copy the detailed error message outside the grid in visual studio and read it, most probably the blocking error was because permissions denied

Sadly this is the only error you'll ever get from docker in the errors list. All other errors are ignored after this one. You have to go digging through the log. Hence this is a bug.

I having the same problem. Also run VS as administrator as David Silwal suggest and still not working https://stackoverflow.com/questions/51082120/the-docker-registry-variable-is-not-set-defaulting-to-a-blank-string.

Check the answer of https://github.com/t-o-o-m. Disabling Windows fast startup work for me! https://github.com/docker/for-win/issues/573

The message The DOCKER_REGISTRY variable is not set. Defaulting to a blank string. is a warning. Because the message is confusing and somewhat bogus, engineering has suppressed the warning as of VS 2017 15.8 Preview 5. The user will see the actual error instead.

This problem can be tracked in the product's repo at https://github.com/Microsoft/DockerTools/issues/130.

Note that that's great, however the error list only ever shows one docker error not many which is really what this is about. VS.net needs to be fixed so that it returns ALL docker errors except this one.

@JohnGalt1717 My understanding is that's the plan. Apologies if my response wasn't clear.

Excellent! Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davisnw picture davisnw  Â·  3Comments

royshouvik picture royshouvik  Â·  3Comments

danroth27 picture danroth27  Â·  3Comments

wgutierrezr picture wgutierrezr  Â·  3Comments

nenmyx picture nenmyx  Â·  3Comments