Status 405 - docker - artifactory

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Status 405 - docker - artifactory

This post was updated on .
I get the following error when pushing images to docker artifactory: v1: Error: Status 405 trying to push repository abc-docker-local: "{\n \"errors\" : [ {\n \"status\" : 405,\n \"message\" : \"Method Not Allowed\"\n } ]\n}"

I use nginx. My config file looks like:

server_name localserver;
rewrite ^ remoteserver/artifactory/api/docker/abc-docker-local/v1 redirect;
if ($http_x_forwarded_proto = '')
{ set $http_x_forwarded_proto $scheme; }

location / {
        proxy_read_timeout  900;
        proxy_pass_header   Server;
        proxy_cookie_path ~*^/.* /;
        proxy_pass          http://remoteserver:9081/artifactory/api/docker/abc-docker-local/v1;
        proxy_set_header   X-Artifactory-Override-Base-Url $http_x_forwarded_proto://$host;
        proxy_set_header    X-Forwarded-Port  $server_port;
        proxy_set_header    X-Forwarded-Proto $http_x_forwarded_proto;
        proxy_set_header    Host              $http_host;
        proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;

In artifactory I set the repo as v1. I also tested with v2 but no end points are returned. The exact message for v2 is: Index response did not contain any endpoints

thanks in advance