Skip to content

Commit 1486d69

Browse files
author
ricardop
committed
err msg, explain the image can simply be missing upstream too
1 parent 296bffc commit 1486d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ http {
170170
# Block API v1. We dont know how to handle these.
171171
# Docker-client should start with v2 and fallback to v1 if something fails, for example, if authentication failed to a protected v2 resource.
172172
location /v1 {
173-
return 405 "API v1 is invalid -- you probably need auth to get a v2 endpoint working against $host -- Check the docs";
173+
return 405 "API v1 is invalid. Either the image does not exist upstream, or you need auth to get a v2 endpoint working against $host";
174174
}
175175

176176
# don't cache mutable entity /v2/<name>/manifests/<reference> (unless the reference is a digest)

0 commit comments

Comments
 (0)