
Halo, kalau kamu merasa tulisan saya ngebantu kamu, kamu bisa ucapkan terima kasih lewat saweria .
Hello, if you find this article helpful, you can express your gratitude through saweria .
Why?
Disabling Docker logs can improve your app’s performance and conserve server resources. In my case, I host a self-hosted Sentry, which was consuming excessive CPU and memory.
After disabling the logs, CPU and memory usage decreased significantly.
How To
- Create a new file,
sudo vim /etc/docker/daemon.json
, fill with
{
"log-driver": "none"
}
- Restart the Docker service
sudo service docker restart