Docker Community Forums

Share and learn in the Docker community.

Docker xhyve VM should make it possible to enable or modprobe modules


(Drfav) #1

Expected behavior

Starting a privileged container which requires mounting a loopback filesystem requires the loop module to be loaded on the host. If the filesystem is encrypted, it also needs dm_crypt.

Actual behavior

Doesn’t work in Docker for Mac.

Information

This used to work perfectly with the previous approach, but with xhyve there’s no way one can access and customise the VM running docker. There should be a possibility to load kernel modules on the VM to allow privileged containers to run correctly.

Steps to reproduce the behavior

Run in a privileged container any command which requires a specific kernel module to be loaded on the host.