Docker loading kernel modules

后端 未结 3 1664
无人共我
无人共我 2020-12-05 15:32

I tried to install a kernel module, xfsprogs. It was successfully installed inside a container. It is really surprising, but lsmod doesn\'t list th

3条回答
  •  一个人的身影
    2020-12-05 16:19

    Containers interact with the kernel through system calls and don't include any part of the kernel or the kernel modules inside the container. This is one of the reasons why containers designed to be light weight and portable. Also xfsprogs are user space programs and not kernel modules.

    How can a new kernel module loaded in a container?(CentOS container, Ubuntu host)

    The module needs to be loaded on your host OS, and not from the docker container.

提交回复
热议问题