简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM