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: 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:3faf7a47-38ea-2762-69dd-1e095142733d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A21E:340321:68DD888:8763E63:69757A46 |
| html-safe-nonce | a9065e4a0c6e54051d6df9f12938b004aeb9311f6ebf78730cd6764ae94b1eb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjFFOjM0MDMyMTo2OEREODg4Ojg3NjNFNjM6Njk3NTdBNDYiLCJ2aXNpdG9yX2lkIjoiODIyMjQ5NDgzMzAxNjkyODgzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c3e765b0d36f605a3d91cc3979a4b7be73573c15e42d66a576be5ff9a745d130 |
| 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 | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width