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
Ex:- 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 ;)
Top comments (4)
Cool! My problem is solved!
Thank you so much! This helped me to solved a problem with a [Phyton, Flask, MongoDB, Docker Desktop] project.
Thanks a lot, that solved issues with Kubernetes on kind
Thanks so much! This fixed my problem of hanging deployments when I was working on Kind K8s emulator which uses docker inside.