Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61222

Capture logs from docker to troubleshoot dns_container_tester.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2021-11-29
    • 30

    Description

      dnsmasq is run inside the container with output sent to stdout. But the container is run detached and so the logs are not captured. Docker provides configurable ways to capture the logs. We should capture them via `json-file` and then output the logs on failure or success.

      References:
      https://docs.docker.com/config/containers/logging/json-file/
      https://docs.docker.com/config/containers/logging/plugins/
      https://docs.docker.com/config/containers/logging/configure/

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: