denibertovic / docker-hs

A Haskell library for the Docker Engine API
BSD 3-Clause "New" or "Revised" License
76 stars 48 forks source link

Non-streaming log api #74

Open ilyakooo0 opened 4 years ago

ilyakooo0 commented 4 years ago

The non-streaming log API doesn't return a normal bytestring. It returns the string encoded in some way that I couldn't manage to google.

This is the only place I could find how to decode it: https://github.com/mafintosh/docker-raw-stream

ilyakooo0 commented 4 years ago

Actually, it looks like the streaming API suffers from the same problem

ilyakooo0 commented 4 years ago

looks like it's a length-encoded string (did dive into the javascript yet, might be wrong)