From 755ff369b5daf26023307997c884370f31a68bbb Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 10 Sep 2021 14:14:46 -0600 Subject: [PATCH] docker attach stdin --- appmgr/src/action/docker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appmgr/src/action/docker.rs b/appmgr/src/action/docker.rs index ce4f3ed8a..adb1f3781 100644 --- a/appmgr/src/action/docker.rs +++ b/appmgr/src/action/docker.rs @@ -199,7 +199,7 @@ impl DockerAction { let mut res = Vec::with_capacity( (2 * self.mounts.len()) // --mount + (2 * self.shm_size_mb.is_some() as usize) // --shm-size - + 4 // --log-driver=journald --entrypoint + + 5 // --interactive --log-driver=journald --entrypoint + self.args.len(), // [ARG...] ); for (volume_id, dst) in &self.mounts { @@ -227,6 +227,7 @@ impl DockerAction { res.push(OsStr::new("--shm-size").into()); res.push(OsString::from(format!("{}m", shm_size_mb)).into()); } + res.push(OsStr::new("--interactive").into()); if self.inject && allow_inject { res.push(OsString::from(Self::container_name(pkg_id, None)).into()); res.push(OsStr::new(&self.entrypoint).into());