Docker Community Forums

Share and learn in the Docker community.

Content-Encoding in Docker API requests

This question is about the Docker API that is served through the Unix socket /var/run/docker.sock.

I noticed that no matter what I request on the header TE, it always responds with “Transfer-Encoding: chunked”.

Is the API capable of encoding responses in any other format besides chunked?

I reckon this is something that only people who worked in Docker’s development can answer. Are any of them in this forum by any chance?