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
docker run --name container_name --privileged --cap-add=ALL -d \
-v /dev:/dev -v /lib/modules:/lib/modules image_id
Caution: Here all Linux capabilities are added so capabilities can be refined.