Undocumented
Exception |
|
Undocumented |
Function | consume |
Iterate through frames read from the socket and return the result. |
Function | demux |
Utility to demultiplex stdout and stderr when reading frames from the socket. |
Function | frames |
Return a generator of frames read from socket. A frame is a tuple where the first item is the stream number and the second item is a chunk of data. |
Function | frames |
Returns a generator of data read from the socket when the tty setting is not enabled. |
Function | frames |
Return a generator of data read from the socket when the tty setting is enabled. |
Function | next |
Returns the stream and size of the next frame of data waiting to be read from socket, according to the protocol defined here: |
Function | read |
Reads at most n bytes from socket |
Function | read |
Reads exactly n bytes from socket Raises SocketError if there isn't enough data |
Constant | NPIPE |
Undocumented |
Constant | STDERR |
Undocumented |
Constant | STDOUT |
Undocumented |
Iterate through frames read from the socket and return the result. Args: demux (bool): If False, stdout and stderr are multiplexed, and the result is the concatenation of all the frames. If True, the streams are demultiplexed, and the result is a 2-tuple where each item is the concatenation of frames belonging to the same stream.
Return a generator of frames read from socket. A frame is a tuple where the first item is the stream number and the second item is a chunk of data. If the tty setting is enabled, the streams are multiplexed into the stdout stream.
Returns the stream and size of the next frame of data waiting to be read from socket, according to the protocol defined here: https://docs.docker.com/engine/api/v1.24/#attach-to-a-container