0
down vote
favorite
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.

thanks in advance





--
View this message in context: 
http://forums.jfrog.org/Status-405-docker-artifactory-tp7580871.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Artifactory-users mailing list
Artifactory-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to