start container request fails for OSX daemon#856
start container request fails for OSX daemon#856tolkonepiu wants to merge 1 commit intodocker-java:masterfrom tolkonepiu:fix_start_container_request
Conversation
Codecov Report
@@ Coverage Diff @@
## master #856 +/- ##
==========================================
+ Coverage 71.53% 71.65% +0.12%
==========================================
Files 306 306
Lines 6665 6665
Branches 501 501
==========================================
+ Hits 4768 4776 +8
+ Misses 1603 1598 -5
+ Partials 294 291 -3
Continue to review full report at Codecov.
|
|
There is integration tests that working fine, this issue was fixed long time ago. I don't know how you get this issue. |
|
Im updated the docker on Mac to version 17.06.0-rc1-ce-mac13 (18169) and get this issue. |
|
Have you tried dump traffic? Does it have non empty body? |
|
After changes? I run curl on my docker with non-empty body: And with empty body: |
|
Not curl, wireshark/tcpdump traffic between docker-java and daemon. |
|
#111 |
|
wireshark/tcpdump on unix socket? Are you sure about it? |
|
Nobody enforce to use unix socket, request json shouldn't differ for socket vs rest connection. |
|
That's jersey, your change is for netty. When i were testing this issue netty has no problems. Could you list classpath libraries with versions? |
|
|
|
Nope. |
Ok. Im trying use socat. |
|
I created container and started it on docker-java 3.0.9. |
|
So it has Very strange because https://github.com/moby/moby/blob/master/api/server/router/container/container_routes.go#L139-L147 |
|
Could you try with non osx docker daemon? |
|
No, sorry. |
|
That looks like docker bug |
|
I find this: moby/moby#33501 |
|
|
Fix bad request when StartContainerCmd doing POST request with non-empty body.
Exception:
This change is