Issue : Docker Container exits on Docker desktop (Windows) with exit code 139.
This is a known problem when running Docker desktop with WSL based engine on windows.
The culprit is the base OS of your docker image.
The Fix is pretty simple.
To fix this, You have to Enable vsyscall=emulate in the kernel config to run older base images.
Step 1 : Create a file named .wslconfig in your user directory
C://users/[your user name]/.wslconfig
Step 2 : Add following line to the .wslconfig file
[wsl2] kernelCommandLine = vsyscall=emulate
Step 3 : Restart Your PC and the issue will be fixed ;)