[kata-dev] Namespaces in the host

Montes, Julio julio.montes at intel.com
Thu Sep 27 17:27:38 UTC 2018


Hi All

Currently Kata Containers only supports network namespaces in the host,
other namespaces are not supported. This week I started to work on this
but I faced some issues with the mount namespace in Go, the main issue
is that a multithread process can't be reassociated with a new mount
namespace [1] as it's reported here [2]. A solution for this might be
to write a new binary in C to create and join namespaces and start the
kata components (shim, qemu, etc) inside it, also this binary would be
used to clean up (unmount, etc) the containers. Another solution might
be to use a C constructor in Go (cgo) to create and join the namespace,
but that means kata-runtime will run inside the namespace. 

If you are already working on this or know how to deal with this issue,
please let me know. In the meantime I'll try to figure out how.


Thank you!

--
Julio


[1] - http://man7.org/linux/man-pages/man2/setns.2.html
[2] - https://github.com/golang/go/issues/8676


More information about the kata-dev mailing list