@@ -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 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,17 @@ Note that the number of mapping entries MAY be limited by the [kernel][user-name
107
111
]
108
112
```
109
113
114
+ ## <a name =" configLinuxTimeOffset " />Offset for Time Namespace
115
+
116
+ ** ` timeOffsets ` ** (object, OPTIONAL) sets the offset for Time Namespace. For more information
117
+ see the [ time_namespaces] ( time_namespaces.7 ) .
118
+
119
+ The name of the clock is the entry key.
120
+ Entry values are objects with the following properties:
121
+
122
+ * ** ` secs ` ** * (int64, OPTIONAL)* - is the offset of clock (in seconds) in the container.
123
+ * ** ` nanosecs ` ** * (uint32, OPTIONAL)* - is the offset of clock (in nanoseconds) in the container.
124
+
110
125
## <a name =" configLinuxDevices " />Devices
111
126
112
127
** ` devices ` ** (array of objects, OPTIONAL) lists devices that MUST be available in the container.
@@ -939,3 +954,4 @@ subset of the available options.
939
954
[ zero.4 ] : http://man7.org/linux/man-pages/man4/zero.4.html
940
955
[ user-namespaces ] : http://man7.org/linux/man-pages/man7/user_namespaces.7.html
941
956
[ intel-rdt-cat-kernel-interface ] : https://www.kernel.org/doc/Documentation/x86/intel_rdt_ui.txt
957
+ [ time_namespaces.7 ] : https://man7.org/linux/man-pages/man7/time_namespaces.7.html
0 commit comments