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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -