Hi, I'm quite new using linux namespaces. I've been trying to englobate/merge multiple namespaces in the same instance using this command line:
unshare -p -n -f --mount-proc /bin/bash
It works well, but the moment i exit it, it's lifecycle ends as well. What i want to do is to create my own "container" with those namespaces in particular, and be able to have more control over it.
Is there any way to do it? I know that with systemd-nspawn and machinectl commands I could have more control, but that implicates that i have a well done container. I don´t want to use base images from debian or so, what i'm looking for is to create my own container with those levels of isolation, to be as leightweight as it can be and have control over it (a more stable/longer lifecycle).
I appreciate any kind of help, thanks.
unshare -p -n -f --mount-proc /bin/bash
It works well, but the moment i exit it, it's lifecycle ends as well. What i want to do is to create my own "container" with those namespaces in particular, and be able to have more control over it.
Is there any way to do it? I know that with systemd-nspawn and machinectl commands I could have more control, but that implicates that i have a well done container. I don´t want to use base images from debian or so, what i'm looking for is to create my own container with those levels of isolation, to be as leightweight as it can be and have control over it (a more stable/longer lifecycle).
I appreciate any kind of help, thanks.