- unshare process (bash)
sudo unshare --fork --uts --ipc --net --pid --mount --mount-proc bash
- look to process table (host vs unshared process)
ps a
- check interfaces (host vs unshared process)
ip a
- try to change hostname (and check host vs unshared process)
hostname container
hostname
- namespaces of unshare bash are other then
self
(host)
ls -al /proc/$unshare_pid/ns
# vs
ls -al /proc/self/ns