Clearing the docker container logs

Solution In Progress - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content