Merge pull request #1917 from weaveworks/issues/1911-fix-unexpected-eof

Fix unexpected EOF with Docker 1.10-rc1 and proxy --rewrite-inspect
This commit is contained in:
Bryan Boreham committed 2016-01-21 10:15:20 +00:00
commit cda98a6375
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ func (i *inspectExecInterceptor) InterceptResponse(r *http.Response) error {
return err
}
if _, ok := exec["Container"]; !ok {
return nil
}
container, err := exec.Object("Container")
if err != nil {
return err
+1 -1
View File
@@ -1476,7 +1476,7 @@ proxy_args() {
}
proxy_addrs() {
if addr="$(http_call_unix $PROXY_CONTAINER_NAME status.sock GET /status 2>&1)" ; then
if addr="$(http_call_unix $PROXY_CONTAINER_NAME status.sock GET /status 2>/dev/null)" ; then
echo "$addr" | sed "s/0.0.0.0/$PROXY_HOST/g"
else