Skip to content

Chunked encoding - can't attach docker #8

Description

@aienabled

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions