-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of the -f flags in docker tag break compatibility with server 1.9.x #29410
Comments
@GordonTheTurtle version/1.9 label is probably not really accurate as the issue is caused by a mix of client 1.12 & server 1.9 and the fix is probably more in version 1.12 than in version 1.9. Yes I know I'm speaking to a turtle-bot ;) |
This flag was deprecated in a year ago in version 1.10 (#18350), and removed in 1.12 (#23090) according to our deprecation policy (/~https://github.com/docker/docker/blob/v1.12.0/docs/deprecated.md#-f-flag-on-docker-tag)
Note that the Docker 1.13 and up will natively support API version negotiation, and allow downgrading to an older API version (but only two versions IIRC). For this situation, I suggest using a docker 1.9 client, which should allow you to talk to both 1.9 and 1.12 daemons |
I'm ok with the principle of a server too old for the client (and the opposite). I'll check with 1.13 when I have the opportunity and I hope it'll report an error when the negotiation is not possible. I do understand that DOCKER_API_VERSION is a debugging tool but you know, once the cat's out of the bag it's really hard to put it back in. I'll close this and will open something for 1.13 if there is no error message in my case. |
@ggtools docker 1.13 will initially only automatically downgrade to API version 1.24 (corresponding with docker 1.12), docker 1.14 will support both 1.24, 1.25, and 1.26. Note that no check is added to /cc @vieux |
Recent versions of docker client support the
DOCKER_API_VERSION
variable to communicate with older servers. This is a very important features as it allows, in my case, to add a docker command in an image and to use this image regardless of the server version.In my case I use a 1.12.x client with a 1.9.1 server downgrading the client API to version 1.21. When moving a tag I face two incompatible issues:
-f
as has been removed from the command arguments-f
flag.Steps to reproduce the issue:
DOCKER_API_VERSION=1.21 docker tag debian gruik
-f
:DOCKER_API_VERSION=1.21 docker tag -f python gruik
-f
:DOCKER_API_VERSION=1.21 docker tag python gruik
Describe the results you received:
At step 4:
At step 5:
Describe the results you expected:
Either step 4 or step 5 working or at least have the docker client refuses to downgrade to API version 1.21 on any command to be aware of the issue sooner.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Server on Redhat Enterprise
The text was updated successfully, but these errors were encountered: