r/docker • u/ShortBoysenberry6173 • 3h ago
"Phantom" container processes clogging up memory on Windows Server
We're running a Windows Server host that creates runs and deletes Docker containers for development and CI/CD. All of them are Microsoft Dynamics 365 Business Central containers created with the BcContainerHelper powershell module. Every few months the host's memory gets clogged up and our main suspected cause are processes that belong to containers that no longer exist. The only fix we have found so far is rebooting the host.
When we fetch processes with 'Get-Process sqlwriter' 99% of the time we find that they match the number of container processes, the only mismatch being when we start having memory issues. This lead us to a suspicion that a container process is left hanging after container deletion or perhaps faulty creation. Has anyone else encountered a similar issue with sqlwriter processes and if so did anyone manage to resolve/prevent it?