chiark / gitweb /
nspawn: print PID and show how to enter the namespace
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 12 Jan 2013 21:55:04 +0000 (16:55 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Feb 2013 15:40:45 +0000 (10:40 -0500)
commit1fd961211df69ce672252d543bf4777738647048
treeabb3cba616bdfcc7f2e58b6c87a75c2eb0f1347e
parenta860325e7ed7ea2bd688b2f002021123a05af084
nspawn: print PID and show how to enter the namespace

systemd-nspawn will now print the PID of the child.
An example showing how to enter the container is added
to the man page.

Support for nsenter without an explicit command was
added in https://github.com/karelzak/util-linux/commit/5758069
(post v2.22.2). So this example requires both a new kernel
and the latest util-linux.
man/systemd-nspawn.xml
src/nspawn/nspawn.c