codekitchen / dinghy

faster, friendlier Docker on OS X
MIT License
2.12k stars 109 forks source link

downgrading docker version #34

Closed MrMMorris closed 9 years ago

MrMMorris commented 9 years ago

Docker 1.7.0 is very much broken https://github.com/docker/docker/issues/14057

How would I go about downgrading docker in the VM?

MrMMorris commented 9 years ago

even with the workaround for that issue of manually docker pulling the image, I run into failed to build: Get https://index.docker.io/v1/repositories/commonsense/csm-dockerfiles/images: dial tcp: lookup index.docker.io on 10.0.2.3:53: too many redirects

Not sure if that's a dinghy problem

codekitchen commented 9 years ago

Yeah I just ran into that yesterday as well, so sad. You can install an older version of dinghy with brew reinstall https://raw.githubusercontent.com/codekitchen/dinghy/v3.0.0/dinghy.rb, but you'll need to convince homebrew to install an older version of the docker client as well, which is a pain.

MrMMorris commented 9 years ago

cool, I will try that, thanks. Definitely a sad state lately for Docker. Seems like they care more about implementing "everything and the kitchen sink" instead of making things stable...

digitalkaoz commented 9 years ago

@codekitchen http://stackoverflow.com/a/31145741 thats a possible solution to integrate into the dinghy vm

digitalkaoz commented 9 years ago

@codekitchen it works

codekitchen commented 9 years ago

I don't follow, how would that fix this docker 1.7 bug?

digitalkaoz commented 9 years ago

IT fixes the TCP to many redirects stuff which happens only with docker vagrant systems

Brian Palmer notifications@github.com schrieb am Do., 9. Juli 2015 16:52:

I don't follow, how would that fix this docker 1.7 bug?

— Reply to this email directly or view it on GitHub https://github.com/codekitchen/dinghy/issues/34#issuecomment-120011788.

codekitchen commented 9 years ago

Oh I see, this ticket got conflated with two different issues. Please open a separate ticket for the redirects issue.

I should point out though that this is how dinghy used to configure virtualbox, but it was changed because it caused other issues with the DNS resolver. See this commit: https://github.com/codekitchen/dinghy/commit/babbfe7f81ae43226298d410c271d97bef71adac

I think the final solution will be to change dinghy's *.docker DNS resolver to not rely on the OS X host's /etc/resolver functionality, and instead modify the VM's iptables directly, similar to how https://github.com/phinze/landrush does it. It might be a while before I can tackle that though.

MrMMorris commented 9 years ago

@codekitchen when can we expect 1.7.1? I have a habit of pointing people with b2d problems in IRC to your lovely alternative, but I am reluctant as 1.7.0 is completely broken.

codekitchen commented 9 years ago

I released it on the 15th -- see https://github.com/codekitchen/dinghy/blob/latest/CHANGELOG.md#302---2015-07-15

You'll need to upgrade dinghy and the VM following the instructions in the README https://github.com/codekitchen/dinghy#upgrading

MrMMorris commented 9 years ago

ah, I did dinghy upgrade without upgrading Dinghy itself. Thanks!

codekitchen commented 9 years ago

oh hm I can see how that'd be confusing. maybe dinghy upgrade should ping github to see if there's a newer version of dinghy itself available.

MrMMorris commented 9 years ago

@codekitchen I think a more pressing need would be the ability to choose what version of docker to run if possible :bowtie:

MrMMorris commented 8 years ago

@codekitchen I really need a way of installing an older version of docker. One of the developers accidentally upgraded to 1.10 and I don't want to be using the latest as I know the network stack rewrite they did will introduce all sorts of issues.

codekitchen commented 8 years ago

Hey @MrMMorris now that dinghy runs on top of docker-machine and doesn't manage installing docker itself, there's nothing in dinghy anymore blocking you from changing server and client versions yourself. I haven't tried it myself though, so I don't know exactly what commands you'd want to run -- maybe docker-machine has it documented somewhere?

MrMMorris commented 8 years ago

@codekitchen wow you are fast at responding :smile:

I will take a look, thanks!

codekitchen commented 8 years ago

Haha, you were just fortunate enough to ask a question while I was catching up on email while walking the dog :)