How to clear Docker container logs
Each Docker container has its on separate log file.
This article explains the command to clear the Docker container logs in a proper way.
#echo "" > $(docker inspect --format='{{.LogPath}}' <container id>)
Here we need to replace "container id" with is the id of the docker container for which the logs need to be cleared.
That's all…