iankelling.org
/
git
/
newns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a0a3b42
)
add missing bit to background doc
author
Ian Kelling
<ian@iankelling.org>
Thu, 19 Jan 2017 11:08:49 +0000
(
03:08
-0800)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 19 Jan 2017 11:08:49 +0000
(
03:08
-0800)
newns
patch
|
blob
|
history
diff --git
a/newns
b/newns
index 39f8971f94baf6036947eb0ddc50e6503fba08c9..4bd1650f7179bddeb1ba0e09888d37d27bf49b31 100755
(executable)
--- a/
newns
+++ b/
newns
@@
-79,8
+79,8
@@
Background:
This script does not make the namespace be named like ip does, because
the naming is not necessary, although it could have been done with some
more work. For debugging and joining the namespace with a bash shell, I
This script does not make the namespace be named like ip does, because
the naming is not necessary, although it could have been done with some
more work. For debugging and joining the namespace with a bash shell, I
-use nsenter -n -m -t $(pgrep PROCESS_IN_NAMESPACE)
. Note: if I knew how
-to easily ask systemd what pid a unit has, i would do that.
+use nsenter -n -m -t $(pgrep PROCESS_IN_NAMESPACE)
bash. Note: if I
+
knew how
to easily ask systemd what pid a unit has, i would do that.
"ip netns new ..." also does a mount namespace, then bind
mounts each file/dir in /etc/netns/NS_NAME to /etc/NS_NAME. Note,
"ip netns new ..." also does a mount namespace, then bind
mounts each file/dir in /etc/netns/NS_NAME to /etc/NS_NAME. Note,