What will happen if i delete a docker container log file?

477 views Asked by At

I have a simple question: what will happen if I delete a Docker container log file? As we know Docker stores container log under /var/lib/docker/containers/*/*-json.log. If by chance I deleted that <container_name>-json.log then what will happen? Docker will create a new log file or it will stop writing logs?

0

There are 0 answers