@@ -34,7 +34,7 @@ pub use vm::*;
3434pub use windows:: * ;
3535
3636/// Base configuration for the container.
37- #[ derive( Builder , Clone , Debug , Deserialize , Getters , Setters , PartialEq , Serialize ) ]
37+ #[ derive( Builder , Clone , Debug , Deserialize , Getters , Setters , PartialEq , Eq , Serialize ) ]
3838#[ serde( rename_all = "camelCase" ) ]
3939#[ builder(
4040 default ,
@@ -90,6 +90,15 @@ pub struct Spec {
9090 /// the container UTS namespace may be the runtime UTS namespace.
9191 hostname : Option < String > ,
9292
93+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
94+ /// Specifies the container's domainame as seen by processes running
95+ /// inside the container. On Linux, for example, this will
96+ /// change the domainame in the container [UTS namespace](http://man7.org/linux/man-pages/man7/namespaces.7.html). Depending on your
97+ /// [namespace
98+ /// configuration](https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#namespaces),
99+ /// the container UTS namespace may be the runtime UTS namespace.
100+ domainname : Option < String > ,
101+
93102 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
94103 /// Hooks allow users to specify programs to run before or after various
95104 /// lifecycle events. Hooks MUST be called in the listed order.
@@ -154,8 +163,8 @@ impl Default for Spec {
154163 version : String :: from ( "1.0.2-dev" ) ,
155164 process : Some ( Default :: default ( ) ) ,
156165 root : Some ( Default :: default ( ) ) ,
157- // Defaults hostname as youki
158166 hostname : "youki" . to_string ( ) . into ( ) ,
167+ domainname : None ,
159168 mounts : get_default_mounts ( ) . into ( ) ,
160169 // Defaults to empty metadata
161170 annotations : Some ( Default :: default ( ) ) ,
0 commit comments