Created
July 10, 2014 14:51
-
-
Save bruceadams/9839eb2105ba1a51ca58 to your computer and use it in GitHub Desktop.
lxc-attach for several namespaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ for ns in MOUNT PID UTSNAME IPC NETWORK; do lxc-attach -n try1 -s $ns -- echo $ns; done | |
lxc-attach: Invalid argument - failed to set namespace 'mnt' | |
lxc-attach: failed to enter the namespace | |
lxc-attach: Invalid argument - failed to set namespace 'pid' | |
lxc-attach: failed to enter the namespace | |
lxc-attach: Invalid argument - failed to set namespace 'uts' | |
lxc-attach: failed to enter the namespace | |
lxc-attach: Invalid argument - failed to set namespace 'ipc' | |
lxc-attach: failed to enter the namespace | |
lxc-attach: Invalid argument - failed to set namespace 'net' | |
lxc-attach: failed to enter the namespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment