← Back to list

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

Issue : Docker Container exits on Docker desktop (Windows) with exit code 139.

Damith Warnakulasuriya · 2020-12-19 13:57 · 0 claps · 0.7 min read
#docker #exit-code #139 #wsl #wsl-2
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud

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

Issue : Docker Container exits on Docker desktop (Windows) with exit code 139.

This is a known problem when running Docker Images with Docker desktop on WSL based engine in windows.

The culprit is the base OS of your docker image.

The Fix is pretty simple.

Requirement: You need to have enabled wsl2 in windows. Follow this : https://docs.docker.com/docker-for-windows/wsl/

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 should be fixed ;)


메타데이터
post_id
ba9012eb6438
slug
docker-desktop-container-crash-with-exit-code-139-on-windows-wsl-fix-ba9012eb6438
url
https://medium.com/@damithdev/docker-desktop-container-crash-with-exit-code-139-on-windows-wsl-fix-ba9012eb6438
canonical_url
https://medium.com/@damithdev/docker-desktop-container-crash-with-exit-code-139-on-windows-wsl-fix-ba9012eb6438
author_url
https://medium.com/@damithdev
status
ok
fetched_at
2026-06-16 19:09:56