Clearing the docker container logs
Issue
- I've started to try to use docker containers on top of Red Hat 7.0. After a few weeks of use, I realized that all log messages, since the beginning of the container, are still there. Once this old logs are no longer necessary, is there a way to clear or delete the logs of these containers?
- The command to access the logs is "docker logs CONTAINERID"
Environment
- Red Hat Enterprise Linux 7.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
