Permalink
Browse files

Support for Userns Mode

  • Loading branch information...
schrieveslaach committed Jan 4, 2019
1 parent da3cce0 commit acbb118fa6a925648d1f3618372d11245a43a63c
Showing with 8 additions and 0 deletions.
  1. +8 −0 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(),

0 comments on commit acbb118

Please sign in to comment.