Hiram Foster
Hiram Foster

Reputation: 128

Linux Kernel with Docker on Windows doesn't match WSL Linux Kernel

I'm trying to mount Azure Files with this tutorial but I'm having trouble mounting. I'm using Docker Desktop to develop deployment containers and the tutorial says it requires Linux Kernel >=4.11. Despite WSL/Ubuntu having kernel 4.19, when I run my Docker containers, the kernel shows up as 4.9.184-linuxkit when I run uname -r. I thought that Debian:buster used a newer kernel, so I'm not sure why my kernel is out of date in the containers. I updated to WSL2, but that didn't seem to help.

Edit: Found something about Docker Desktop and WSL2, but I'm not sure what it means.

Upvotes: 1

Views: 1634

Answers (1)

Hiram Foster
Hiram Foster

Reputation: 128

I was able to get the Docker container linux kernel to match Windows by doing the following:

  1. Enroll in Windows Insider Program and choose the Fast channel
  2. Install/enable WSL 2
  3. Upgrade to the Edge channel in Docker Desktop for Windows
  4. Enable WSL integration Docker Desktop -> Settings -> Resources -> WSL Integration
  5. Verify with docker run -it debain:buster /bin/bash and uname -r

Upvotes: 1

Related Questions