@@ -34,6 +34,7 @@ The following parameters can be specified to set up namespaces:
3434 * ** ` uts ` ** the container will be able to have its own hostname and domain name.
3535 * ** ` user ` ** the container will be able to remap user and group IDs from the host to local users and groups within the container.
3636 * ** ` cgroup ` ** the container will have an isolated view of the cgroup hierarchy.
37+ * ** ` time ` ** the container will be able to have its own clocks.
3738* ** ` path ` ** * (string, OPTIONAL)* - namespace file.
3839 This value MUST be an absolute path in the [ runtime mount namespace] ( glossary.md#runtime-namespace ) .
3940 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
7071 },
7172 {
7273 "type" : " cgroup"
74+ },
75+ {
76+ "type" : " time"
7377 }
7478]
7579```
@@ -107,6 +111,17 @@ Note that the number of mapping entries MAY be limited by the [kernel][user-name
107111]
108112```
109113
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+
110125## <a name =" configLinuxDevices " />Devices
111126
112127** ` devices ` ** (array of objects, OPTIONAL) lists devices that MUST be available in the container.
@@ -939,3 +954,4 @@ subset of the available options.
939954[ zero.4 ] : http://man7.org/linux/man-pages/man4/zero.4.html
940955[ user-namespaces ] : http://man7.org/linux/man-pages/man7/user_namespaces.7.html
941956[ 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