Comments (8)
@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
from pouch.
also countered this problem, @gaocegege you should pull docker images like:
pouch pull docker.io/library/hello-world:latest
pouch set default registry address: docker.io, but likely not worked
from pouch.
there also has a bug: client decode failed, because server return 200 ( should 500)
resp.WriteHeader(http.StatusInternalServerError) // this code does not worked
may i can fix this problem for you @allencloud
from pouch.
We will improve this part asap. This is a known insufficient.
from pouch.
It couldn't be better. Just submit PR and enjoy hacking. @HusterWan 👍
from pouch.
@HusterWan Thanks for your information
from pouch.
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.
from pouch.
@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 .
https://golang.org/pkg/net/http/#ResponseWriter
so i am thinking maybe we can not only use http code to judge if pull image is ok
from pouch.
Related Issues (20)
- Weekly Digest (28 June, 2020 - 5 July, 2020)
- [question]Is Pouch suitable for CDN application?
- Weekly Digest (5 July, 2020 - 12 July, 2020)
- Weekly Digest (12 July, 2020 - 19 July, 2020)
- Weekly Digest (19 July, 2020 - 26 July, 2020)
- Weekly Digest (26 July, 2020 - 2 August, 2020)
- Weekly Digest (2 August, 2020 - 9 August, 2020)
- Adding arm64 job in Travis-ci HOT 1
- no support go 1.15.6 HOT 1
- How to Install pouch on ubuntu18.04 HOT 1
- pouch save failed: an error will be reported every time you download to 14G HOT 3
- Kubernetes 1.22 dose not work with pouch HOT 2
- 不维护了吗 没动静了 HOT 2
- pouch 富容器无法启动 最新的版本 HOT 1
- 不起作用 dumb-init 进程看不到 HOT 1
- Why don't you have thye go.mod file like other Go projects?
- Is there rpm for 1.3.1 version?
- Can I install on MacOS and how to do it?
- kmutex lock is not exclusive.
- [Feature] Will pouch support something like docker-compose ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pouch.