unshare
Execute a command in new user-defined namespaces. More information: <https://www.kernel.org/doc/html/latest/userspace-api/unshare.html>.
Install
- All systems
-
curl cmd.cat/unshare.sh
- Debian
-
apt-get install util-linux
- Ubuntu
-
apt-get install util-linux
- Alpine
-
apk add util-linux
- Arch Linux
-
pacman -S util-linux
- Kali Linux
-
apt-get install util-linux
- CentOS
-
yum install util-linux
- Fedora
-
dnf install util-linux
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install util-linux
- OS X
-
brew install util-linux
- Raspbian
-
apt-get install util-linux
- Dockerfile
- dockerfile.run/unshare
- Docker
-
docker run cmd.cat/unshare unshare
powered by Commando
Execute a command in new user-defined namespaces. More information: <https://www.kernel.org/doc/html/latest/userspace-api/unshare.html>.
-
Execute a command without sharing access to connected networks:
unshare --net command command_arguments
-
Execute a command as a child process without sharing mounts, processes, or networks:
unshare --mount --pid --net --fork command command_arguments
© tl;dr; authors and contributors