diff options
author | Sergey Tsaplin <SergeyTsaplin@users.noreply.github.com> | 2019-06-01 07:39:34 +0300 |
---|---|---|
committer | Doug Tangren <d.tangren@gmail.com> | 2019-06-01 00:39:34 -0400 |
commit | dd732ad2691c4ffb04506024f991a8cbb5b8034b (patch) | |
tree | 84404853177ef3f43c3b01cac1d563666c148e3b | |
parent | 897f16a3a65dacd9a2d9f113659a443b5ade0cea (diff) |
Add WorkingDir container's option support (#175)
-rw-r--r-- | src/builder.rs | 9 |
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, |