forked from rd235/nsutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnshold.1
74 lines (60 loc) · 1.46 KB
/
nshold.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.TH NSHOLD 1 "August 14, 2016" "VirtualSquare Labs"
.SH NAME
cgroupnshold ipcnshold mntnshold netnshold pidnshold usernshold utsnshold \- Set a placeholder for a namespace
.SH SYNOPSIS
.B cgroupnshold
[
.I tag
]
.B ipcnshold
[
.I tag
]
.B mntnshold
[
.I tag
]
.B netnshold
[
.I tag
]
.B pidnshold
[
.I tag
]
.B usernshold
[
.I tag
]
.B utsnshold
[
.I tag
]
.SH DESCRIPTION
\fBnshold\fR commands define placeholders for namespaces. A placeholder is a small idle process whose goal is to keep
the namespace alive.
Each \fBnshold\fR command has a prefix to specify the type of namespace and creates a placeholder for the current
namespace of that type.
It is possible to assign a tag to a placeholder to later identify that namespace.
\fItag\fR is a single argument. \fBnshold\fR implements a shortcut to define a tag consisting of several keywords:
two dashes -- followed by all the keywords.
A namespace placeholder is a process and can be terminated using \fBkill\fR(1) or \fBkill\fR(2).
.nBnsrelease\fR commands provide a simpler interface to terminate placeholders.
For example a placeholder for the net namespace of the current process can be defined by:
.nf
netnshold privatenet
.fi
A user can later run a shell in that namespace typing:
.nf
netnsjoin privatenet bash
.fi
Similar commands using the -- shortrcdut are:
.nf
netnshold -- house automation
netnsjoin house automation -- bash
.fi
.SH SEE ALSO
\fBnslist\fR(1)
\fBnsrelease\fR(1)
\fBnetnsjoin\fR(1)
\fBcado\fR(1)