Running Docker is most of the time an amazing time saver. But it can put a heavy load on your host machine. Especially, when you need to run Windows containers, not to mention an SQL Server instance. As this will always take every last bit of memory it can get it claim.
To improve performance on your host machine, you should limit the memory usage of the docker images. Depending on the version of Docker you're running, you need a different configuration. For Docker v2 you need to make the following change:
- Open the docker-compose.override.yml
- Under each node add the following line:
mem_limit: 4GB - Depending on your host machine you can of course increase or decrease the value.
If you're running on Docker v3 engine you need to add the following lines below resources:
limits
memory: 4GB
For more information, see the Docker documentation.
Hope this helps speed up your system!
Shout out to Gary Wenneker for sharing his learnings!