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

remote API to pull inconsistent #8844

Closed
xavs opened this issue Oct 29, 2014 · 2 comments
Closed

remote API to pull inconsistent #8844

xavs opened this issue Oct 29, 2014 · 2 comments
Labels

Comments

@xavs
Copy link

xavs commented Oct 29, 2014

The API to pull an image is a bit inconsistent.
IE POST /images/create?fromImage=xxx.xx/asd/qwe
When the pull fails it still returns http status 200, and the response body seems like some sort of pseudo-json like
{"status":"Pulling repository aaa.com/ns/name"}
{"errorDetail":{"message":"Error: image ns/name not found"},"error":"Error: image ns/name not found"}

where it should probably be like
{"status":"Pulling repository aaa.com/ns/name",
"errorDetail":{"message":"Error: image ns/name not found"},"error":"Error: image ns/name not found"}

and the response status probalby a 422

"The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions."

@gtaylor
Copy link

gtaylor commented Feb 5, 2015

I noticed this as well while playing with docker-py (docker/docker-py#467). Was hoping to see if this was intended behavior or not. The docs don't mention any codes aside from 2xx and 500 for this particular API call.

@jessfraz
Copy link
Contributor

dup of #5722

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

No branches or pull requests

3 participants