Skip to content
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

[DEPRECATION NOTICE] registry v2 schema1 support will be removed in an upcoming release. #942

Closed
1 of 3 tasks
chamer81 opened this issue Feb 25, 2020 · 3 comments · Fixed by moby/moby#40671
Closed
1 of 3 tasks

Comments

@chamer81
Copy link

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Actual behavior

When a push to our OpenShift image registry fails due to an imagestream tag quota limit reached, we receive a deprecation notice. We are not sure whether this warning is correctly reporting a problem with our infrastructure:

$ docker push "${IMAGE}"
The push refers to repository [registry.appuio.ch/example-django/example-django]
ae4a3fee0df9: Preparing
...
fd33502eb220: Pushed
[DEPRECATION NOTICE] registry v2 schema1 support will be removed in an upcoming release. Please contact admins of the registry.appuio.ch registry NOW to avoid future disruption. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
denied

The notice does not appear when the push succeeds, so it's not clear whether the target registry is actually using a deprecated schema or whether the notice is also emitted for other types of push errors.

According to our analysis, the source code that emits the notice may be doing a fallback to a deprecated schema version.

Expected behavior

We would expect a deprecation notice to appear every time an image is pushed to a registry with the deprecated schema, and not to appear under any other circumstances, so it would be clearer whether the notice is relevant or not.

Steps to reproduce the behavior

Attempt to push an image to an OpenShift image registry in which the tag quota limit has been exhausted.

Output of docker version:
(Output of GitLab-CI pipeline, running the latest official Docker image)

Pulling docker image docker.io/library/docker ...
Using docker image sha256:6512892b576811235f68a6dcd5fbe10b387ac0ba3709aeaf80cd5cfcecb387c7 for docker.io/library/docker ...
Running on runner-0277ea0f-project-14535846-concurrent-0 via runner-0277ea0f-srm-1581736725-a02e3b27...

Additional environment details (AWS, VirtualBox, physical, etc.)
Docker CI runner on GitLab.com

Complete output of the build job here: https://gitlab.com/appuio/example-django/-/jobs/438375719

@bittner
Copy link

bittner commented Feb 26, 2020

I can confirm this behavior. This looks like a bug of the Docker client, which needs to be fixed. The deprecation notice alarms customers, unnecessarily as it seems, which creates overhead in our daily operations.

@megian
Copy link

megian commented Mar 5, 2020

Similar issues seen with the version "Docker version 19.03.6, build 369ce74a3c"

@cpuguy83
Copy link
Collaborator

Would this be sufficient? moby/moby#40671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants