Skip to content
Discussion options

You must be logged in to vote

My feeling is that what you're describing can be done by creating a bash script like this:

#!/bin/bash
td-agent -q -d 
node ./start.js

... and launch the container as follows:

ENTRYPOINT ["./init.sh"]

That said, I strongly recommend against setting up containers in this way.

The goal was to run a simple Nodejs app in a container, such that logs from the app are tailed with td-agent and sent to a remote central server.

The whole point of Docker is to make it very easy to run services in separate
containers. If you want to run Fluentd, you really should just launch another
container for it.

The basic technical concept behind Docker is "one container, one app". I think
it kinda misses the…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@charlessensibill
Comment options

@fujimotos
Comment options

Answer selected by fujimotos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3946 on November 06, 2022 00:37.