stream - Send logs to web page with node.js -


i have issue while trying send logs of app front.

i want send logs of specific docker container web page. can attach console works can't manage send stream simple webpage displays happening container.

how can ?

i tried use socket.io circular json error, , can front end [object object] , nothing else.

here function use attach container :

docker.containers.attach(containerid, {logs: true, stream: true, stdout: true, stderr: false, tty: false}, function(err, stream){   stream.pipe(process.stdout); //this shows happens inside container. want send output web page }) 

a friend wrote https://github.com/soulou/node-docker-stream post here other people can @ awesome repo.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -