Hotplugging Mounts Into Processes

17:00 bis 17:50 in Raum V2

Elizaveta Tretiakova

Being able to dynamically interact with mounts while a container is running has been a long-standing request from many container users. The idea is to dynamically add mounts to a container without polluting the host’s mount namespace. An example would be adding a new dedicated storage device to the container before it runs out of disk space. Interacting with mounts at container runtime is also necessary in order to add new devices to containers. Over the last couple of months I have worked on implementing mount hotplug as part of my bachelor thesis into LXC containers. To this end I wrote a new API function “mount” that users can call to inject mounts into a running container. In this talk I will explain how this all works and how I’ve implemented this functionality.