10

I am trying to push to a private repository on dockerhub and am getting a strange error:

$ docker push myrepo/my-awesome-service:latest
The push refers to a repository [docker.io/myrepo/my-awesome-service] (len: 1)
cbf09022264b: Buffering to Disk 
Error parsing HTTP response: invalid character '<' looking for beginning of value: "<html><body><h1>403 Forbidden</h1>\nRequest forbidden by administrative rules.\n</body></html>\n\n"

I have checked and made sure I have "admin" permissions on dockerhub. Any idea what could be causing this, or how I can fix it?

more info:

$ docker --version
Docker version 1.8.0, build 0d03096
Nick Humrich
  • 14,905
  • 8
  • 62
  • 85

3 Answers3

9

This issue occurs in Docker 1.8.0.

Upgrading to the latest Docker (1.8.1 at time of posting) should resolve the issue.

Also, you may need to docker-machine upgrade <machine-name>

j.r.clarkin
  • 516
  • 5
  • 6
  • For me, i updated from 1.7 and i am getting same error :( – bsao Aug 13 '15 at 21:21
  • 2
    @bsao Make sure you upgraded your server too(e.g. if you use docker with docker-machine on OS X) – Alexander Putilin Aug 14 '15 at 18:32
  • I removed dockeand and installed again, solved :) Thank you a lot! @AlexanderPutilin – bsao Aug 15 '15 at 18:56
  • 1
    According to this [Docker issue](https://github.com/docker/docker/issues/15612) you also have to `docker-machine upgrade `. Upgrading to Docker 1.8.1 didn't help until I ran that. – mmell Aug 17 '15 at 23:09
1

On debian based system just type:

$ sudo apt-get update
$ sudo apt-get upgrade

This will upgrade to 1.8.1 and solve the problem

sam
  • 21
  • 2
0

Yes, must upgrade docker v1.8.1 (arm64),maybe something like API changed. my docker version is now v1.8.1 built from source code ,and it can push the image to my public repository.

jefby
  • 345
  • 1
  • 4
  • 14