Skip to content

Instantly share code, notes, and snippets.

@bruceadams
Created July 10, 2014 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruceadams/9839eb2105ba1a51ca58 to your computer and use it in GitHub Desktop.
Save bruceadams/9839eb2105ba1a51ca58 to your computer and use it in GitHub Desktop.
lxc-attach for several namespaces
$ 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