Skip to content
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

Docker logs Demuxing #511

Closed
thelamer opened this issue Feb 17, 2019 · 5 comments
Closed

Docker logs Demuxing #511

thelamer opened this issue Feb 17, 2019 · 5 comments

Comments

@thelamer
Copy link

It looks like in a recent update if "follow" is set to false when grabbing container logs you get back a buffer.
That is fine, but even converted to utf8 I am having trouble figuring out a reliable method of removing just the logstream for parsing, used to use "ansi_up.ansi_to_html" in combination with the demuxed logStream to parse it to a reliable readable output.

Does anyone have any suggestions or are there any plans to add a function call to demux this buffer?

@mhemrg
Copy link

mhemrg commented Feb 18, 2019

Same issue after upgrading to 2.5.8 from 2.5.3.
Seems that this issue is related to #456 and #469.

@apocas
Copy link
Owner

apocas commented Feb 19, 2019

Update dockerode's dependency docker-modem to v1.0.9 (just published it)

It should fix the problem.

@thelamer
Copy link
Author

thelamer commented Mar 9, 2019

When you say it should fix the problem are you saying we can use the same container.modem.demuxStream function call on the return from an unfollowed logset?
Updated I still get a buffer and if I try to put that through demux I get a no trace crash.

Sorry I gotta go full pleb status here, do you have a modified example of this without following the output https://github.com/apocas/dockerode/blob/master/examples/logs.js ?

@larshp
Copy link

larshp commented Mar 30, 2019

Having similar issue, using 2.5.8

@thelamer
Copy link
Author

thelamer commented Jun 5, 2019

closing as it is not the responsibility of the maintainer to give me code examples.

@thelamer thelamer closed this as completed Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants