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
Question about the images in pouch #123
Comments
also countered this problem, @gaocegege you should pull docker images like: |
We will improve this part asap. This is a known insufficient. |
there also has a bug: client decode failed, because server return 200 ( should 500) |
It couldn't be better. Just submit PR and enjoy hacking. @HusterWan 👍 |
@HusterWan Thanks for your information |
failed to decode: invalid character 'i' in literal false (expecting 'l') <===== The reason may be that the server side(pouchd) closed the connection, not http status code. The CLI read data from the tcp connection and decode them with json format, but not handle the error when connection closed. @HusterWan Welcome to post a PR to fix it, thanks. |
@skoo87 i am working on it, the problem maybe more complicated, golang ResponseWriter allow call WriteHeader only once, so if the server(pouchd)'s goroutine call ResponseWriter.Writer once when pull image, the http code will be set 200, and later call resp.WriteHeader(http.StatusInternalServerError) will not work . so i am thinking maybe we can not only use http code to judge if pull image is ok |
@allencloud @skoo87 i create a pr to fix this problem, please review #160 , if there is any problem, you can ping me any time. 3x |
Issue Description
Tried to run
pouch pull
to pull images just like docker does but failed.Describe what happened:
Run
pouch pull hello-world:latest
but failed to get the image. I dived into the code and found that pouch will parse the URLdummy://hello-world:latest
and get the object from the URL. I am not sure whatdummy://
is, and it seems that we can not use pouch like docker. Could you give me some guides to understand the concept of image in pouch?I'd appreciate it.
Pouchd Log
Pouch Log
Describe what you expected to happen:
Pull the images successfully from docker hub or other registries.
How to reproduce it (as minimally and precisely as possible):
pouch pull hello-world:latest
Anything else we need to know?:
Nothing.
Environment:
pouch version
):uname -a
):The text was updated successfully, but these errors were encountered: