containerd / containerd/nerdctl
[LOGS]: JSON log should create the log file earlier
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### Description
When using the json log driver, an early call to `logs` may fail inside `viewLogsJSONFile` as the file may not be there yet.
Containerd will eventually create the log file - but we should check if it is possible to create it earlier to ensure that `logs` does not fail.
### Steps to reproduce the issue
Triggered in testing - see source code in `viewLogsJSONFile` where a workaround has been placed.
### Describe the results you received and expected
na
### What version of nerdctl are you using?
main
### Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
### Host information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.