pierone icon indicating copy to clipboard operation
pierone copied to clipboard

Implement Docker Registry V2 error JSON

Open hjacobs opened this issue 9 years ago • 3 comments

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>

hjacobs avatar Nov 10 '15 09:11 hjacobs

:+1:

whiskeysierra avatar Feb 22 '16 13:02 whiskeysierra

:+1:

tmuehl avatar Mar 24 '16 09:03 tmuehl

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

hjacobs avatar Apr 22 '16 15:04 hjacobs