faradayio / boondock

Docker daemon API in Rust
43 stars 14 forks source link

Create container keeps returning 'EOF' #19

Open SebAubin opened 6 years ago

SebAubin commented 6 years ago

Hi, i'm having an issue with the container creation method on the 'feature/containers' branch here Docker keeps returning 'EOF' even though my headers and body are present. I've tested it with Postman and it works properly.

Is there anybody know what to do?

Thank you

emk commented 6 years ago

Hmm, that's not feature that we use at Faraday, so I'm not sure what's up with it. :-(

Generally speaking, Boondock is "passively maintained". If something breaks that we use in-house, we'll fix it quickly. If somebody sends a PR, we're happy to review it. And we can answer questions.

In a case like this, I can think of two possibilities:

  1. There may be a mismatch between the JSON formats Docker is expecting, and the ones boondock is expecting. You may be able to get a hint about what's going on using RUST_LOG=trace and a short sample program. Also turn on logging on the Docker side if you can figure out how, and maybe look a the source to either the client or server part of docker.
  2. You may be trying to run a container in "attached" mode, with live, real-time output. This is very weird and fragile, and it's hard to keep working.

I wish I had a better answer for you. :-(

SebAubin commented 6 years ago

I'll look into that! Thanks for your reply!