Title: Docker 18.06: copyArchiveFromContainerCmd fails due to presence of gzip encoding · Issue #1079 · docker-java/docker-java · GitHub
Open Graph Title: Docker 18.06: copyArchiveFromContainerCmd fails due to presence of gzip encoding · Issue #1079 · docker-java/docker-java
X Title: Docker 18.06: copyArchiveFromContainerCmd fails due to presence of gzip encoding · Issue #1079 · docker-java/docker-java
Description: We've observed an issue affecting users of Testcontainers and Docker 18.06 on Mac, whereby our attempts to copy a file from a container would fail (producing zero-length or corrupt data). We believe that we've traced it back to the follo...
Open Graph Description: We've observed an issue affecting users of Testcontainers and Docker 18.06 on Mac, whereby our attempts to copy a file from a container would fail (producing zero-length or corrupt data). We believ...
X Description: We've observed an issue affecting users of Testcontainers and Docker 18.06 on Mac, whereby our attempts to copy a file from a container would fail (producing zero-length or corrupt data). We be...
Opengraph URL: https://github.com/docker-java/docker-java/issues/1079
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docker 18.06: copyArchiveFromContainerCmd fails due to presence of gzip encoding","articleBody":"We've observed an issue affecting users of Testcontainers and Docker 18.06 on Mac, whereby our attempts to copy a file from a container would fail (producing zero-length or corrupt data).\r\n\r\nWe believe that we've traced it back to the following causes:\r\n\r\n1. docker-java’s `NettyInvocationBuilder` sets an outgoing `Accept-Encoding: gzip` header. Until very recently docker was not actually doing anything with this header - i.e. not producing a compressed response\r\n1. Content negotiation to produce compressed responses were added to Docker in moby/moby#36164, meaning that TAR archives will now come back with gzip/deflate compression according to the request header\r\n1. AFAICT, despite the `Accept-Encoding` request header, there is no code in docker-java to actually decompress responses\r\n\r\nIt seems to me that a simple fix is to add `channel.pipeline().addLast(new HttpContentDecompressor())` in the right places in `NettyInvocationBuilder`. If this works for us (and our forked version of this class), I'll contribute a PR back to docker-java.","author":{"url":"https://github.com/rnorth","@type":"Person","name":"rnorth"},"datePublished":"2018-08-04T15:23:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1079/docker-java/issues/1079"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6201ed14-622c-21ed-a152-d4a15919006a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A72:3C7808:15A4DFB:1D54DF2:6973EA13 |
| html-safe-nonce | 1625258e6320acb26dabdc3a2e1ae1281b3b8db17218a2816f21e75c62be5713 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTcyOjNDNzgwODoxNUE0REZCOjFENTRERjI6Njk3M0VBMTMiLCJ2aXNpdG9yX2lkIjoiMTQzNjYyMjk4NDI4NTk4ODAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3dec47d5a66351d5bb2def67e7fcb7c6a74e54dcfbde8625bad2ac5e4e81ee91 |
| hovercard-subject-tag | issue:347626587 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/1079/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a2cc0a6d45da5087a2261be5b54b2f9bc4c84a7dd3c3b63b3fd78df4caf00b21/docker-java/docker-java/issues/1079 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2cc0a6d45da5087a2261be5b54b2f9bc4c84a7dd3c3b63b3fd78df4caf00b21/docker-java/docker-java/issues/1079 |
| og:image:alt | We've observed an issue affecting users of Testcontainers and Docker 18.06 on Mac, whereby our attempts to copy a file from a container would fail (producing zero-length or corrupt data). We believ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rnorth |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4b7a84cee4a6a4d5586408f46e9a84ba4875452ca979bb7cde3489bd59b55cb7 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git |
| octolytics-dimension-user_id | 7772003 |
| octolytics-dimension-user_login | docker-java |
| octolytics-dimension-repository_id | 20415251 |
| octolytics-dimension-repository_nwo | docker-java/docker-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20415251 |
| octolytics-dimension-repository_network_root_nwo | docker-java/docker-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4042c2390128e359bfef98d0ec9e5622256ea303 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width