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

Docker Desktop Incompatibility with 6.8.10-locietta-WSL2-xanmod1.1 Kernel #64

Closed
4-FLOSS-Free-Libre-Open-Source-Software opened this issue May 23, 2024 · 8 comments · Fixed by #86
Labels
BUG Something isn't working

Comments

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

Docker Desktop fails to function correctly when running on the 6.8.10-locietta-WSL2-xanmod1.1 kernel. Users attempting to utilize Docker Desktop in conjunction with this kernel are experiencing operational issues that prevent Docker Desktop from starting its engine at all.

Steps to Reproduce:

  1. Install the 6.8.10-locietta-WSL2-xanmod1.1 kernel on a Windows Subsystem for Linux 2 (WSL2) environment.
  2. Install Docker Desktop on the same environment.
  3. Attempt to launch Docker Desktop WSL2 integrated and observe its functionality.

Docker Desktop fails to launch This include failure to start the Docker daemon, or other critical errors that impede functionality.

Workaround:
As a temporary workaround, users can install and use Docker Community Edition (docker-ce) directly within the WSL2 distribution instead of relying on Docker Desktop. This involves the following steps:

  • Ensure the xanmod1.1 kernel is installed and running.
  • Install docker-ce within the WSL2 distribution by following the official Docker installation guide for Linux.
  • Use docker-ce for container management and other Docker operations.

Environment:

  • Windows Version: 11x64
  • WSL2 Kernel Version: 6.8.10-locietta-WSL2-xanmod1.1
  • Docker Desktop Version: 26.1.1

Additional Information:

Docker Desktop system information outputs.

docker info
Client:
 Version:    26.1.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.14.0-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.27.0-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.29
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.23
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.8.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe
@Locietta Locietta added the BUG Something isn't working label May 23, 2024
@stevenhobs
Copy link

Is this could be fix?

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor Author

The title mentioned xanmod release version explicitly. Also, valid issue for lts branch. Latest incompatible 6.6.36-locietta-WSL2-xanmod1.1-lts

Not the main issue, related I noticed docker-ce created iptable rules with FIB, but this feature isn't is enabled in Kernel config.

@nexplorer-3e
Copy link

nexplorer-3e commented Jul 21, 2024

same here: 6.9.9-locietta-WSL2-xanmod1
does there exists any workaround here?
upd: see also: https://discussion.fedoraproject.org/t/rmnscnce-kernel-xanmod/27945/60
upd: another rolling kernel repo can be used https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling/releases/tag/linux-wsl-stable-6.10.0

@Andarwinux
Copy link
Contributor

Is it still not working? I don't use docker desktop, but wsl internal docker works fine for me.

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor Author

Yes, docker Desktop v4.35.1 still not working as of 6.11.7-locietta-WSL2-xanmod1 (v4)
But can confirm wsl docker-ce working fine.
I don't use docker desktop anymore, so this is not my issue.

@Andarwinux
Copy link
Contributor

I've determined the root cause of the problem: BTF is not enabled and thus eBPF doesn't actually work.

Andarwinux added a commit to Andarwinux/xanmod-kernel-WSL2 that referenced this issue Nov 21, 2024
Docker Desktop requires eBPF, which won't work without BTF

fixes Locietta#64
@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor Author

Is this could be fix?

Yes @stevenhobs, thankfully @Andarwinux fixed it.

same here: 6.9.9-locietta-WSL2-xanmod1 does there exists any workaround here? upd: see also: https://discussion.fedoraproject.org/t/rmnscnce-kernel-xanmod/27945/60 upd: another rolling kernel repo can be used https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling/releases/tag/linux-wsl-stable-6.10.0

No workaround needed with latest Kernel release @nexplorer-3e

Nevuly added a commit to Nevuly/WSL2-Linux-Kernel-Rolling that referenced this issue Jan 20, 2025
 * Enable kernel headers through /sys/kernel/kheaders.tar.xz feature.
 * Enable trim unused exported kernel symbols feature.
 * Enable multipath TCP and support IPv6 too.
 * Related from microsoft/WSL#5526 and Locietta/xanmod-kernel-WSL2#64.

Signed-off-by: Yang Jeong Hun <[email protected]>
Nevuly added a commit to Nevuly/WSL2-Linux-Kernel-Rolling-LTS that referenced this issue Jan 20, 2025
 * Enable kernel headers through /sys/kernel/kheaders.tar.xz feature.
 * Enable trim unused exported kernel symbols feature.
 * Enable multipath TCP and support IPv6 too.
 * Related from microsoft/WSL#5526 and Locietta/xanmod-kernel-WSL2#64.

Signed-off-by: Yang Jeong Hun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants