unshare

Execute a command in new user-defined namespaces. More information: https://www.kernel.org/doc/html/latest/userspace-api/unshare.html.

unshare --net command command_arguments

unshare --mount --pid --net --fork command command_arguments