[SERVER-61222] Capture logs from docker to troubleshoot dns_container_tester.js Created: 03/Nov/21  Updated: 29/Oct/23  Resolved: 19/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2021-11-29
Participants:
Linked BF Score: 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/



 Comments   
Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-61222 Capture logs from docker to troubleshoot dns_container_tester.js
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/d63547532db3b1868d8fb0302bc399ab53813123

Generated at Thu Feb 08 05:51:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.