docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/docker/roadmap/projects/1
Creative Commons Zero v1.0 Universal
1.45k stars 244 forks source link

Option to clear the logs of a Container before starting #605

Open jhintringer opened 3 months ago

jhintringer commented 3 months ago

Tell us about your request It would be very handy to have an option to clear the log-file before the start of a Container using Docker Desktop. Not an extra button to clear, but an alternative Start of the Container with first clearing the log file and then start. Or a global Setting to always clear the logs before any Start of a Container.

Which service(s) is this request for? Docker Desktop for Mac and Win

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Sometimes the logfile is very big and Docker doing a hard job to load and scroll down to the bottom, altough its not interesting anymore. Clearing the Terminal will fix this for the moment, but the next startup the log will be there again. For Example: I have a container, that is setup to run my application tests. I always see results from the tests before and all this unneeded data until I finally see the new logs from the current process.

Are you currently working around the issue? I always start the Container, switch to its Log Tab, let Docker scroll down a few seconds and then press the "clear Terminal" button. This is very annoying, also because i'm always clearing accidently some new data from the current log output.

Additional context I'm not an UI designer, but I would prefer to have an option in the context menu of the extended Actions Button ( ⁞ ) to start or restart with log-clearing.