/containers-from-scratch-c

Primary LanguageCGNU General Public License v2.0GPL-2.0

containers-from-scratch-c

This is my playground to learn Linux namespaces.

Basically, this program (nstest) creates User namespace and UTS/PID/Mount namespaces, then run specified commands in the namespaces.

Build

make

Prepare for rootfs

Extract a container image you like, or

make rootfs

Run process in user namespace

./nstest bash