Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Docker Desktop not working #21

Closed
pbk20191 opened this issue Aug 13, 2024 · 8 comments
Closed

[BUG] Docker Desktop not working #21

pbk20191 opened this issue Aug 13, 2024 · 8 comments
Assignees

Comments

@pbk20191
Copy link

pbk20191 commented Aug 13, 2024

Windows Version

Windows 11

Kernel Release Channel

Stable Release

Kernel Version

6.10.4

Distro Version

Ubuntu 22.04

Other Software

Docker-Desktop (4.33.1)

Repro Steps

After updating the Docker Desktop to 4.33.1. Docker Desktop is not working. ( Docker Desktop was working normally before update)

Expected Behavior

Docker Desktop should keep working. Like normal MS wsl2 kernel does.

Actual Behavior

Using Docker Desktop with 6.10.4 kernel shows me "Shutting down Docker Engine" over and over.

Diagnostic Logs

No response

@Nevuly Nevuly self-assigned this Aug 14, 2024
@Nevuly Nevuly added the Bug label Aug 14, 2024
@Nevuly
Copy link
Owner

Nevuly commented Aug 14, 2024

@pbk20191

Thanks for leaving issue.

I'll check it in my environment with 6.10.4 kernel.

(I don't have enough time, So It will take time to fix this problem. I'll check it ASAP.)

Thanks.

@pbk20191
Copy link
Author

I realized that official pre-release kernel has been downgraded back from "6.6" to "5.15".
And Official WSL2 pre-release kernel has same issue. ( I checked it by building the kernel from source)

@Nevuly
Copy link
Owner

Nevuly commented Aug 14, 2024

I realized that official pre-release kernel has been downgraded back from "6.6" to "5.15". And Official WSL2 pre-release kernel has same issue. ( I checked it by building the kernel from source)

Okay, Thanks for give information.
관련 정보 주셔서 감사합니다.

I merged some 6.6 kernel features, I must recheck about that.
이전에 6.6 커널의 defconfig 중 일부 내용을 머지한 적이 있는데, 그 기능들을 다시 확인해봐야겠습니다.

Thanks.
감사합니다.

@Nevuly Nevuly added the WIP label Aug 14, 2024
@Nevuly
Copy link
Owner

Nevuly commented Aug 15, 2024

@pbk20191

Hello. Today, I completed to check about this issue.
안녕하세요. 오늘 이 문제에 대해 확인을 완료하여 공유 드립니다.

After update to docker desktop version 4.43.1, It always try to checking wsl2 update.
docker desktop 4.43.1 버전 업데이트 이후, docker desktop이 프로그램을 시작할 때 마다 wsl2 업데이트를 확인합니다.

You can check about that issue in below:
해당 이슈는 docker 공식 깃허브에도 공유되었으니, 아래 내용을 확인해보세요:
docker/for-win#14240

I checked that issue thread, docker developer shared test version about disable it:
공유드린 이슈 스레드를 확인해 보니, 개발자분이 wsl2 업데이트를 비활성화 한 테스트 버전을 공유해주셨습니다:
docker/for-win#13868 (comment)

I installed that version, and check docker desktop again, and I confirmed It keep try to access lib/modules directory.
제 시스템에 해당 버전을 설치하고 확인하니, docker desktop에서 시작할 때마다 lib/modules 디렉토리에 접근을 시도하는 것이 확인되었고, 디렉토리가 없어 오류가 발생하는 것을 확인했습니다.

In 4.43.1 changelog in below:
docker desktop 4.43.1의 변경사항은 다음과 같습니다:
Added support for WSL2 2.3.11 and above, which includes loadable kernel modules.
WSL2 2.3.11 또는 그 이후 버전에서 로드 가능한 커널 모듈을 지원합니다.

WSL2 custom kernels can't install kernel modules automatically, So you need to install it in docker-desktop WSL2 image manually.
아시다 싶이, WSL2 커스텀 커널은 커널 모듈을 모든 이미지에 자동으로 설치할 수 없기 때문에, docker-desktop WSL2 이미지에 수동으로 접근하여 커널 모듈을 설치하셔야 합니다.

After install kernel modules in docker-desktop WSL2 image, I confirmed It works correctly again.
설치 이후 제 시스템에서 docker-desktop이 다시 정상동작 하는 것을 확인하였습니다.

image

If you need a guide about install kernel modules in docker-desktop WSL2 image, please leave comment.
만약, docker-desktop WSL2 이미지에 커널 모듈 설치 가이드가 필요하시다면, 답변을 달아주시면 감사하겠습니다.

Thanks.
감사합니다.

@Nevuly Nevuly added Won't Fix and removed WIP labels Aug 15, 2024
@Nevuly Nevuly closed this as completed Aug 15, 2024
@Nevuly Nevuly changed the title Docker Desktop not working [BUG] Docker Desktop not working Aug 15, 2024
@pbk20191
Copy link
Author

pbk20191 commented Aug 16, 2024

Thanks for your detail explanation.
I appreciate your help.
Can I have detail guideline of installing kernel-module?

@Nevuly
Copy link
Owner

Nevuly commented Aug 16, 2024

Thanks for your detail explanation. I appreciate your help. Can I have detail guideline of installing kernel-module?

  1. Please type command in below: (type in CMD)
    wsl -d docker-desktop

After type that, you can access docker-desktop WSL2 image.

  1. Download kernel-modules tarball zip and paste it in docker-desktop WSL2 directory. You can access it in explorer

  2. unzip kernel-modules tarball in WSL2 terminal.

  3. paste x.x.x-WSL2-xxxx+ directory in lib/modules. If lib/modules not exists, please create it.

  4. Shutdown your WSL2 and turn off the docker desktop. and restart it.

After doing that procedure, you can use docker-desktop again.

Thanks.

@huangxiaofeng10047
Copy link

@Nevuly after install the ·6.10.4-wsl-STABLE+· into the /lib/modules ,I success.
image
image

@Nevuly
Copy link
Owner

Nevuly commented Aug 23, 2024

@Nevuly after install the ·6.10.4-wsl-STABLE+· into the /lib/modules ,I success. image image

Great.

Thanks for testing about that. :)

@Nevuly Nevuly pinned this issue Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants