我可以更改用于Windows的Docker中使用的内核吗? [英] Can I change the kernel used in Docker for Windows?

查看:271
本文介绍了我可以更改用于Windows的Docker中使用的内核吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一组docker容器,但是要有一个自定义内核.

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

既然Docker for Windows已经在使用Hyper-V,是否可以更改正在运行的映像?

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

推荐答案

Docker使用自己的补丁内核(以​​及专用的Linux发行版),名为 linuxkit 在Docker桌面中.在 https://hub.docker.com/r/docker/中提到for-desktopkernel .

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.

我能够在Docker for Mac安装的应用程序文件夹内名为linuxkit的文件夹中找到kernelinitrd.imgcmdline.

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.

我假设您会在Windows安装中找到类似的文件夹.

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

只需使用linuxkit的说明/补丁构建您自己的内核,然后替换这些文件.

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

这篇关于我可以更改用于Windows的Docker中使用的内核吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆