Skip to content

Instantly share code, notes, and snippets.

@nickbabcock nickbabcock/patch
Created Feb 24, 2019

Embed
What would you like to do?
cross patch
From 63d4e6685c37985a519c33da862115d9190846b8 Mon Sep 17 00:00:00 2001
From: Nick Babcock <nbabcock19@hotmail.com>
Date: Sun, 24 Feb 2019 14:01:05 -0600
Subject: [PATCH] Disable tty allocation
---
src/docker.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/docker.rs b/src/docker.rs
index d080a3a..1f4f836 100644
--- a/src/docker.rs
+++ b/src/docker.rs
@@ -62,7 +62,7 @@ pub fn register(target: &Target, verbose: bool) -> Result<()> {
docker_command("run")
.arg("--privileged")
.arg("--rm")
- .arg("-it")
+ .arg("-i")
.arg("ubuntu:16.04")
.args(&["sh", "-c", cmd])
.run(verbose)
@@ -159,7 +159,7 @@ pub fn run(target: &Target,
.args(&["-v", &format!("{}:/rust:ro", sysroot.display())])
.args(&["-v", &format!("{}:/target", target_dir.display())])
.args(&["-w", "/project"])
- .args(&["-it", &image(toml, target)?])
+ .args(&["-i", &image(toml, target)?])
.args(&["sh", "-c", &format!("PATH=$PATH:/rust/bin {:?}", cmd)])
.run_and_get_status(verbose)
}
--
2.17.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.