Hello
Thank you for your question and reaching out. I can understand you are having query\issues related to vmmem high CPU usage.
When Docker is running, it uses memory just like any other virtual machine in any virtualizer. Docker is a sort of virtual machine.
It suggests that you create the following text file at:
C:\Users<your-username>.wslconfig
[wsl2]
memory=2GB # Limits VM memory in WSL 2
processors=1 # Makes the WSL 1 VM use two virtual processors
Reference :
https://devblogs.microsoft.com/oldnewthing/20180717-00/?p=99265
--If the reply is helpful, please Upvote and Accept as answer--