Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunked encoding - can't attach docker #8

Open
aienabled opened this issue Jan 11, 2018 · 2 comments
Open

Chunked encoding - can't attach docker #8

aienabled opened this issue Jan 11, 2018 · 2 comments

Comments

@aienabled
Copy link

aienabled commented Jan 11, 2018

Hello!
This proxy works really great and allows me to protect Docker API with basic auth.
However, when I need to attach to the Docker container, the response from Nginx has header "Transfer-Encoding: chunked" and so .NET Docker client (not sure about other clients) cannot establish connection as this is not a raw stream connection.

It's easy to test with curl:

curl -i -X POST http://LOGIN:PASS@URL/containers/{CONTAINERID}/attach

If I connect directly to the Docker API the response headers are:

Content-Type: application/vnd.docker.raw-stream

But with Nginx proxy the response headers are:

Content-Type: application/vnd.docker.raw-stream
Transfer-Encoding: chunked
Connection: keep-alive

Regards!

@aienabled
Copy link
Author

Disabling chunked encoding in the Nginx configuration simply closes connection so this is not a solution.
Alas, I have no experience with Nginx and don't know how to configure it to proxy raw streams.

@mehulmpt
Copy link

Did you ever figure this out? I'm stuck with same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants