diff --git a/src/options.rs b/src/options.rs index b5914809..a3724219 100644 --- a/src/options.rs +++ b/src/options.rs @@ -2,6 +2,7 @@ use std::path::PathBuf; use std::time::Duration; +use std::ffi::OsString; use std::collections::HashMap; use url::form_urlencoded; @@ -390,11 +391,11 @@ pub struct ContainerCreateOptions { tty: bool, open_stdin: bool, stdin_once: bool, - env: Vec, + env: Vec, #[serde(skip_serializing_if = "Vec::is_empty")] - cmd: Vec, + cmd: Vec, #[serde(skip_serializing_if = "Vec::is_empty")] - entrypoint: Vec, + entrypoint: Vec, image: String, labels: HashMap, // volumes: HashMap, not sure the type that this would need to be. @@ -484,19 +485,19 @@ impl ContainerCreateOptions { } /// push back an envvar entry - pub fn env(&mut self, env: String) -> &mut Self { + pub fn env(&mut self, env: OsString) -> &mut Self { self.env.push(env); self } /// push back a cmd argment - pub fn cmd(&mut self, cmd: String) -> &mut Self { + pub fn cmd(&mut self, cmd: OsString) -> &mut Self { self.cmd.push(cmd); self } /// update entrypoint - pub fn entrypoint(&mut self, entrypoint: Vec) -> &mut Self { + pub fn entrypoint(&mut self, entrypoint: Vec) -> &mut Self { self.entrypoint = entrypoint; self }