zalando-stups / pierone

STUPS' Docker registry with S3 backend, immutable tags and SCM source tracking
http://docs.stups.io/en/latest/components/pierone.html
Other
57 stars 7 forks source link

Implement Docker Registry V2 error JSON #60

Open hjacobs opened 8 years ago

hjacobs commented 8 years ago

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 commented 8 years ago

:+1:

tmuehl commented 8 years ago

:+1:

hjacobs commented 8 years ago

See also https://github.com/docker/docker/issues/18569