Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I change the kernel used in Docker for Windows?

Tags:

docker

kernel

I want to run a set of docker containers but with a custom kernel.

Since Docker for Windows is already using Hyper-V, could it be possible to change which image is running?

like image 632
Gust Avatar asked Oct 17 '25 12:10

Gust


1 Answers

Docker uses its own patched Kernel (along with a specialized Linux distro) called linuxkit in Docker Desktop. It is mentioned in https://hub.docker.com/r/docker/for-desktop-kernel.

I am able to find kernel, initrd.img and cmdline in a folder called linuxkit inside the application folder of my Docker for Mac installation.

I assume that you will find a similar folder inside the Windows installation.

Simply build your own Kernel with the instructions/patches of linuxkit and replace those files.

like image 131
Jesse Chan Avatar answered Oct 20 '25 02:10

Jesse Chan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!