Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker 403 on push latest to private

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
like image 407
Nick Humrich Avatar asked Aug 13 '15 19:08

Nick Humrich


2 Answers

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>

like image 130
j.r.clarkin Avatar answered Oct 11 '22 11:10

j.r.clarkin


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

like image 43
sam Avatar answered Oct 11 '22 11:10

sam