summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/builder.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 63e8e92..64fb065 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -653,6 +653,14 @@ impl ContainerOptionsBuilder {
self
}
+ pub fn userns_mode(
+ &mut self,
+ mode: &str,
+ ) -> &mut Self {
+ self.params.insert("HostConfig.UsernsMode", json!(mode));
+ self
+ }
+
pub fn build(&self) -> ContainerOptions {
ContainerOptions {
name: self.name.clone(),