You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."
The text was updated successfully, but these errors were encountered:
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.
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."
The text was updated successfully, but these errors were encountered: