Hey everyone! I'm pretty new to containerization, so please forgive me if I'm not using all the right terms. I have some web servers running on Docker, but I've noticed they tend to stop working after about a day. It seems like it's the whole Docker Engine rather than just one container since restarting it usually fixes the issue—at least until the next day. I've also noticed that a full computer restart sometimes gives me an extra day of functionality, but not always. Right now, I've got Docker version 28.2.2 on MacOS. Can anyone help me figure out what might be causing this? I'm happy to share more details if needed since it's really frustrating not having my server accessible when I'm out and about.
4 Answers
It's possible that a memory leak in one of your containers is causing the problem. Sometimes, the only fix is to restart the system, but if one container is affecting others, it could be worth checking what apps you're running and if you have memory limits set.
Sounds like a memory issue to me. Linux doesn't handle memory leaks great, and it might kill your app if it encounters one. You can try setting memory limits for your containers and possibly restart the app if it fails, especially if the crashes aren’t frequent.
You might want to check if the "Resource Saver" feature is enabled in your Docker settings under Resources -> Advanced. On Windows, I found that it caused issues by putting Docker to sleep when I was using it, thinking it was saving resources. I don't have a Mac to test this, but it’s worth looking into!
I've disabled the Resource Saver feature, so I'll see if that helps. Thanks for the tip!
To really diagnose your issue, it would help to see some logs. If you’re using Docker Desktop on Mac, check if your disk is full. I've found that Docker doesn't handle a full disk well and can enter a sort of frozen state.
That might be the issue! I just looked, and I have about 11 GB free right now. Where can I find Docker logs to share?
I'm using Overseerr and Bazarr. They communicate with Radarr and Sonarr, which are outside of Docker. I have a memory limit of 7.9 GB set, but no disk usage limit.