After having read about the performance improvements when running Docker on WSL2, I have been waiting for the official release of Windows 10 that supports WSL2. I updated Windows and Docker and switched on the Docker flag to use WSL2 and was hoping for some performance boost for my Oracle Database running in a Docker container but unfortunately the change slowed down the container and my laptop dramatically. The performance of the container is about 10x slower and my laptop is pretty much stuck when starting the container. It seems as if the memory consumption would completely use up my 8GB and heavy memory swapping starts to take place. Is there anything I can do to improve the performance of Docker on WSL2 or at least to better understand what's wrong in my setup?
My environment:
- Processor: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz, 2 Core(s)
- Installed Physical Memory (RAM): 8.00 GB
- Microsoft Windows 10 Pro Version 10.0.19041 Build 19041
- Docker version 19.03.8, build afacb8b
docker-compose up
. From there you can access the running container ok localhost as normally experienced in Linux OS – Proconsulate