-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
container.logs() returns unprintable chars in buffer #71
Comments
I finally resolved to fix it by removing the 8 first chars this way:
|
It's docker internal logging prefix (8 symbols). Better to be described in README |
For those wondering, the documentation can be found here: https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerAttach (subsection: Stream format) |
thank you @skyclo |
I think adding utility methods (maybe something like Eventually I can make a pull request to this repo with some additional docs in the README or examples to show such functionality. I'm using this feature heavily, so I'd be willing to submit a PR. Of course, that being said, the multiplexed stream is immediately removed in favor of raw data for TTY terminals. So far, from what I've seen, it still works with Since this is your package @AgustinCB, any thoughts on adding these doc changes or helper functions? |
Hello
I'm trying the following code with an existing container (typescript):
But I get things like:
Translated to an UTF-8 string, this gives:
The log file contains lines like this:
The text was updated successfully, but these errors were encountered: