Memaparkan catatan dengan label Docker. Papar semua catatan
Memaparkan catatan dengan label Docker. Papar semua catatan

 Before this, I have used a Window container for docker and never face issues with code 139.

Then I changed to WSL (Windows Subsystem for Linux) container for the purpose to improve the performance. 




But by using WSL I can't start a certain image, the container keeps restarting. This restarting state makes it is impossible to see the container logs by using the command $ docker logs -f <container>

Hence instead of using $ docker-compose up -d I use $ docker-compose up so I can see the logs during the start.





sample


So somewhere I read this 139 related to system unable to access so location due to permission issues. Then to solve this issue at WSL by updating the .wslconfig by adding 
kernelCommandLine = vsyscall=emulate

    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



Docker exited with code 139 (Solved)




To use virtual machine using virtualbox we need to disable the hyper-v service 
by using CMD or Powershell (Administrator)
$ bcdedit /set hypervisorlaunchtype off
Restart PC and start virtualbox
----------------------------------------------------------------
To use docker again use below command 
by using CMD or Powershell (Administrator)
$ bcdedit /set hypervisorlaunchtype auto
Restart PC and start virtualbox

The Clash of Virtual Machine and Docker