Docker does not support authentication over HTTP (and they said they have
no intention to support non-HTTPS auth) see here
<https://github.com/docker/docker-registry/issues/541>.
Basically you have 2 options here:
1. Use nginx with HTTPS as described in our wiki
<http://www.jfrog.com/confluence/display/RTF/Docker+Repositories#DockerRepositories-RequirementforaReverseProxy%28Nginx%2FApache%29>
.
2. Enable anonymous in Artifactory and grant it with full permissions on
the docker local repository.

Hope that helps,
Shay

On Wed, Nov 12, 2014 at 8:16 PM, jwu <[email protected]> wrote:

> Hi,
>
> I got following error when I tried to push docker image to artifactory
> docker repository:
>
> docker push 10.247.83.121:88/notetaker
> The push refers to a repository [10.247.83.121:88/notetaker] (len: 1)
> Sending image list
> Pushing repository 10.247.83.121:88/notetaker (1 tags)
> 511136ea3c5a: Pushing
> 2014/11/12 18:08:08 HTTP code 403 while uploading metadata: invalid
> character '<' looking for beginning of value
>
> I checked the repository and noticed that there're three files uploaded:
> _index_images.json
> _index_images.json.md5
> _index_images.json.sha1
> The artifacts count also added. However, I'm not able to pull the image, so
> I think the push is failed.
>
> I've set up nginx listening to port 88 and will direct to the artifactory
> docker repository, and I'm using following dockercfg:
>
> {
>   "http://10.247.83.121:88"; : {
>     "auth" : "YWRtaW46QVAzZ0MxTnVkekVUZUE2Mm9NMjJEWWdYSDNm",
>     "email" : ""
>   }
> }
>
> I'm not sure if this is because I'm not using https with nginx?
>
> Thanks.
>
>
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Artifactory-docker-repository-push-fails-tp7580051.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to