Skip to content

introduce header to document docker.raw-stream is multiplexed or raw tty #35761

@ndeloof

Description

@ndeloof

Description

Docker attach API do use application/vnd.docker.raw-stream content type, which has two implementations:

  • multiplexed stdout/stderr streams
  • raw tty output

from API response there's no way (afaict) to determine which one is used
I suggest a header is introduced to document which mode is being used

Steps to reproduce the issue:

  1. ask a friend to create a container, setting tty= to a random value kept secret
  2. invoke containers/{id}/attach
  3. try to guess the raw.stream format in use

Describe the results you received:

have to try parsing a multiplexed frame, then admit I was wrong.

Describe the results you expected:

simple way to determine the parsing logic to use

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiAPIkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions