-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Weird unicode issue in Container#logs() output #79
Comments
Thanks! Had to solve that same problem in nodechecker.com stdout and stderr outputs. Check this out: EDIT: |
Thank you -- I ended up doing a regex whitelist against the output -- which still sucks but at least it's readable and doesn't destroy the terminal: var patt = /([0-9a-zA-Z'"#,\-/_ .@]+)/;
stream.on('data', function (chunk) {
var str = chunk.toString('utf-8');
var match = str.match(patt);
if (match) {
console.log(match[0])
}
}); |
Will close this for now. |
@apocas please see moby/moby#7375 (comment) should this be handled by dockerode, or my downstream application ? |
Humm. Dockerode already tackles this and "demuxes" the streams for you if you want. Check this attach scenario in here: https://github.com/apocas/nodechecker-tester/blob/master/lib/container.js#L120 Are you attaching and demuxing like this? |
Ah so I need to use that -- sweet deal thanks @apocas |
No problem. Sorry for not figuring out what was happening faster, I thought you were already demuxing :) |
All good man thanks for building this BADASS library :) |
Is there any suggested solution for this? The solution by @kfatehi works but it still shows some weird chars |
Hi, first of all thanks for this module! Second, I have a strange issue / question but I'm not sure if it's a Docker thing or a dockerode thing. Please see moby/moby#7375
The text was updated successfully, but these errors were encountered: