Feature Request: Add command to clear logs in container
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
The docker logs <container-name> command comes in handy during development to inspect console logs. After a while of running a container, it can become cumbersome to go through.
I am proposing a docker logs clear <container-name> which clears all logs in a specified container.
This command will be immediately useful to me and several other developers I believe who use custom scripts to achieve this behaviour.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing docker logs <container-name> command and its container logging behavior. Determine the scope and constraints of a clear operation, then identify the relevant CLI entry point and tests; done means the proposed command has defined behavior and coverage for clearing logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100