summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/builder.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 8cbbf9b..58bca53 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -564,6 +564,15 @@ impl ContainerOptionsBuilder {
self
}
+ /// Specify the working dir (corresponds to the `-w` docker cli argument)
+ pub fn working_dir(
+ &mut self,
+ working_dir: &str,
+ ) -> &mut Self {
+ self.params.insert("WorkingDir", json!(working_dir));
+ self
+ }
+
/// Specify any bind mounts, taking the form of `/some/host/path:/some/container/path`
pub fn volumes(
&mut self,