Docker client gets 405 error in nginx during docker push/pull
r at roze.lv
Sun May 7 12:47:52 UTC 2017
> 2017/04/26 20:18:22 [error] 7#7: *34966 open() "/etc/nginx/html/v1/_ping" failed (2: No such file or directory), client: 10.40.210.70, server: 10.39.228.151, request: "GET /v1/_ping HTTP/1.1", host: "10.39.228.151:9000"
I'm not familiar with the software stack you're using but just looking at the error and your nginx configuration there is actually nothing that handles the 'v1/_ping' request which then returns some default 404 nginx page (what might or might not result In the situation (internal error) you are seeing).
Your configuration server blocks have:
rewrite ^/(v2)/(.*) /artifactory/api/docker/docker-candidate-release/$1/$2;
could indicate that there is some version mismatch between the backend software.
You could try to add also to add also 'v1' to the rewrite (depends if the /artifactory location can process the 'v1'):
rewrite ^/(v1|v2)/(.*) /artifactory/api/docker/docker-candidate-release/$1/$2;
But in general I would suggest the same as the people in the docker issue told you - to contact/consult with the Artifactory support/devs.
More information about the nginx