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
Containers logs (particularly nginx and service) can be very large and take up a lot of space. Also, it isn't fast to docker logs container | grep foo them for issues.
We can't use logrotate inside the containers because they all report out on stdout/err, but it looks like we can configure the “local” logging driver and it does log-rotation by default and still works with docker logs, so we can do docker logs --since 10m <container_id>.
My bias is to do this for every container in the docker-compose.yml file.
The text was updated successfully, but these errors were encountered:
Containers logs (particularly nginx and service) can be very large and take up a lot of space. Also, it isn't fast to
docker logs container | grep foo
them for issues.We can't use logrotate inside the containers because they all report out on stdout/err, but it looks like we can configure the “local” logging driver and it does log-rotation by default and still works with
docker logs
, so we can dodocker logs --since 10m <container_id>
.My bias is to do this for every container in the docker-compose.yml file.
The text was updated successfully, but these errors were encountered: