4 ms·
Or, you know, just set `DOCKER_API_VERSION` to the version of the engine you're interacting with.
by amazingman 10y ago
Or, 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.