3 ms·
> Each version of the CLI is incompatible with the last version of the CLI. Run the previous version of the cli in a container on your local machine. https://h
by joshka 10y ago
> Each version of the CLI is incompatible with the last version of the CLI.
Run the previous version of the cli in a container on your local machine. https://hub.docker.com/_/docker/ https://hub.docker.com/_/docker/
$ docker run -it --rm docker:1.9 version
- deleted 10y ago[deleted]
- Chronic9q 10y agoYou literally just proved his point.
- jcoffland 10y agoI don't think he was arguing against it.
- Twirrim 10y agoIt's so hard to tell. I hope they were joking.
- joshka 10y agoI'm not sure that I did. Let's expand out my point to see if I'm on the same page as the replies here. 1. TFA complains that versions of servers require corresponding client tools to be installed. 2. TFA says he loves docker in dev, but not in prod. 3. I state (omitting many steps): install the latest docker in your dev environment (or wherever you're connecting to prod), spin up a small docker image to run the appropriate version cli. This is cheap, easy, easy to understand why it works, consistent with points 1 and 2. What am I missing?
- inlined 10y agoThis is both very clever and horrifying. This obviously works for development but doing a rolling update of your fleet is stressful without the additional wrinkle of progressively updating which tool you need to inspect or control that fleet.
- coldtea 10y ago>Run the previous version of the cli in a container on your local machine. I'd rather get out of IT and go into farming is this is considered a valid recourse.
- Annatar 10y agoMay I join you?
- amazingman 10y agoOr, you know, just set `DOCKER_API_VERSION` to the version of the engine you're interacting with.
- andrewguenther 10y agoAre we the only two people who know this??
- amazingman 10y agoI certainly hope not. It's literally the first environment variable listed in the Docker CLI reference doc: https://docs.docker.com/engine/reference/commandline/cli/ https://docs.docker.com/engine/reference/commandline/cli/
- mappu 10y agoIf it has the capability to communicate cross-version, it should just do that, instead of displaying an error message that /doesn't/ point you to `DOCKER_API_VERSION`.
- amazingman 10y agoNot doing so is a perfectly defensible decision. Not informing the user of the environment variable, however, is indeed a fairly awful mistake.