The Container Logs view board on the Boatswain web portal allows us the read the log of different containers but this requires that the container writes the logs to stdout or stderr.
The following example is part of the Dockerfile of the official Nginx image which pipes the access and error logs to stdout and stderr.
# forward request and error logs to docker log collector RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log
The above trick might not work in all scenarios. For more information, please refer to Docker Docs - View logs for a container or service.