Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Implement Docker Registry V2 error JSON #60

Open
hjacobs opened this issue Nov 10, 2015 · 3 comments
Open

Implement Docker Registry V2 error JSON #60

hjacobs opened this issue Nov 10, 2015 · 3 comments

Comments

@hjacobs
Copy link
Contributor

hjacobs commented Nov 10, 2015

The stupid Docker client will not honor any standard HTTP status code (e.g. 401/403 will just result in "< nil >" printed by the Docker client) --- we need to implement the proprietary Docker error response objects (https://docs.docker.com/registry/spec/api/#errors-2) to get "proper" error messages on the console.

Example of "< nil >" when pushing without a valid OAuth token:

docker push pierone.example.org/myteam/myapp:0.2.1
The push refers to a repository [pierone.example.org/myteam/myapp] (len: 1)
68b46070c8ad: Preparing 
<nil>
@whiskeysierra
Copy link

👍

1 similar comment
@tmuehl
Copy link

tmuehl commented Mar 24, 2016

👍

@hjacobs
Copy link
Contributor Author

hjacobs commented Apr 22, 2016

See also moby/moby#18569

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

No branches or pull requests

3 participants