-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add no-file and keep-file log option for docker driver. #1906
Conversation
By default no-file is false, this means the driver will create json log files that can be used to run `docker logs` command. If no-file is true, no files are created and so `docker log` won't work. This allow the ability to run the driver without caring of space left on the host. keep-file tells the driver to keep file even after the container has been stopped, by default this options is false. This means files are cleaned up once containers are stopped and not history is left to be used for `docker logs`. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
==========================================
+ Coverage 64.57% 64.65% +0.07%
==========================================
Files 125 125
Lines 9477 9477
==========================================
+ Hits 6120 6127 +7
+ Misses 2929 2925 -4
+ Partials 428 425 -3
|
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@ushuz Appreciate the review, I've fixed those comment, PTAL ! ✌️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
By default no-file is false, this means the driver will create json log files that can be used to run
docker logs
command.If no-file is true, no files are created and so
docker log
won't work. This allow the ability to run the driver without caring of space left on the host.keep-file tells the driver to keep file even after the container has been stopped, by default this options is false. This means files are cleaned up once containers are stopped and not history is left to be used for
docker logs
.Fixes #1868
Fixes #1886
Signed-off-by: Cyril Tovena cyril.tovena@gmail.com