summaryrefslogtreecommitdiffstats
path: root/src/builder.rs
diff options
context:
space:
mode:
authorAntoine Büsch <antoine.busch@gmail.com>2018-09-29 16:47:42 +1000
committerAntoine Büsch <antoine.busch@gmail.com>2018-09-29 16:47:42 +1000
commit36ef9c5800e2828c6be9d84b5922baf0f7bc5f95 (patch)
tree22d57bbb8518e2982c94dc4c28a759453b2c3d0f /src/builder.rs
parent3e2a40cbf272931f2374d8101dc59ab00bdf528a (diff)
parenteec5876731b40f0074a71793efa0b0f4f627989f (diff)
Merge branch 'master' into update-to-hyper-0.12
Diffstat (limited to 'src/builder.rs')
-rw-r--r--src/builder.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 2b1db3b..ffc0cf1 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -418,6 +418,11 @@ impl ContainerOptionsBuilder {
self
}
+ pub fn memory(&mut self, memory: u64) -> &mut ContainerOptionsBuilder {
+ self.params.insert("HostConfig.Memory", Json::U64(memory));
+ self
+ }
+
pub fn labels(&mut self, labels: &HashMap<&str, &str>) -> &mut ContainerOptionsBuilder {
let mut json_labels : BTreeMap<String, Json> = BTreeMap::new();