Docking Containers with Multiple Log Sources

Let's say I have a container that has everything I need to run my web application (e.g. https://github.com/grigio/docker-stringer ). How can I view the logs for different services (web server, application server, database server)? With all the tutorials so far, I could only view the logs to run a specific command when the container started.

+4
source share
1 answer

One way is to configure the logs to write to stdout and use docker logs to get them.

Another option is to use bindmount and a link to your host file system.

+4
source

Source: https://habr.com/ru/post/1493707/


All Articles