You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
You can enable log rotation on the container, as well as filter logs with "--tail", "--since", and "--until".
If you change to the "local" log driver, rotation is enabled by default.
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.
The text was updated successfully, but these errors were encountered: