Lauren Wolfe
Lauren Wolfe

Reputation: 141

Docker push fails, too many redirects

I have a repo on dockerhub. I have successfully pushed to it several times. Now, suddenly I can't push. I can't imagine the small XML file edit causing the problem, but I don't know what it might be.

The command and error are as follows:

Pushing tag for rev [6c4dcead2bef] on {https://cdn-registry-1.docker.io/v1/repositories/lulumialu/titandb/tags/latest} 2015/06/22 13:17:10 Put https://index.docker.io/v1/repositories/lulumialu/titandb/images: dial tcp: lookup index.docker.io on [10.0.2.3]:53: too many redirects

Upvotes: 2

Views: 1003

Answers (1)

Lauren Wolfe
Lauren Wolfe

Reputation: 141

After some prodding, I came up with a solution that works for me (the others didn't, so if you have no luck with those, give this a try). It appears to survive a reboot, so slightly less of a pain too.

$ VBoxManage controlvm "boot2docker-vm" poweroff
$ VBoxManage modifyvm "boot2docker-vm" --natdnshostresolver1 off

More info here: https://www.virtualbox.org/manual/ch09.html#nat_host_resolver_proxy

Upvotes: 5

Related Questions