You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The time namespace is a new kernel feature available in 5.6+ to
isolate the system monotonic and boot-time clocks.
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Copy file name to clipboardexpand all lines: config-linux.md
+15
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ The following parameters can be specified to set up namespaces:
34
34
***`uts`** the container will be able to have its own hostname and domain name.
35
35
***`user`** the container will be able to remap user and group IDs from the host to local users and groups within the container.
36
36
***`cgroup`** the container will have an isolated view of the cgroup hierarchy.
37
+
***`time`** the container will be able to have its own system monotonic and boot-time clocks.
37
38
***`path`***(string, OPTIONAL)* - namespace file.
38
39
This value MUST be an absolute path in the [runtime mount namespace](glossary.md#runtime-namespace).
39
40
The runtime MUST place the container process in the namespace associated with that `path`.
@@ -70,6 +71,9 @@ If a `namespaces` field contains duplicated namespaces with same `type`, the run
70
71
},
71
72
{
72
73
"type": "cgroup"
74
+
},
75
+
{
76
+
"type": "time"
73
77
}
74
78
]
75
79
```
@@ -107,6 +111,16 @@ Note that the number of mapping entries MAY be limited by the [kernel][user-name
107
111
]
108
112
```
109
113
114
+
## <aname="configLinuxTimeOffset" />Offset for Time Namespace
115
+
116
+
**`timeOffset`** (object, OPTIONAL) sets the offset for Time Namespace. For more information
117
+
see the [time_namespaces](time_namespaces.7).
118
+
119
+
***`monotonicSecs`***(int64, REQUIRED)* - is the offset of clock monotonic (in secs) in the container.
120
+
***`monotonicNanosecs`***(int64, OPTIONAL)* - is the additional offset for MonotonicSecs (in nanosecs). The actual offset is monotonicSecs plus monotonicNanosecs.
121
+
***`boottimeSecs`***(int64, REQUIRED)* - is the offset of clock boottime (in secs) in the container.
122
+
***`boottimeNanosecs`***(int64, OPTIONAL)* - the additional offset for BoottimeSecs (in nanosecs). The actual offset is boottimeSecs plus boottimeNanosecs.
123
+
110
124
## <aname="configLinuxDevices" />Devices
111
125
112
126
**`devices`** (array of objects, OPTIONAL) lists devices that MUST be available in the container.
@@ -770,3 +784,4 @@ subset of the available options.
0 commit comments