DEV Community


Docker Desktop Container crash with exit code 139 on Windows WSL Fix

damith profile image Damith ・1 min read

Alt Text

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

kernelCommandLine = vsyscall=emulate
Enter fullscreen mode Exit fullscreen mode

Step 3 : Restart Your PC and the issue will be fixed ;)

Discussion (0)

Forem Open with the Forem app