From f51f7775f6b0f5113aa8c33e9f038b66444377dd Mon Sep 17 00:00:00 2001 From: David Cardoso Date: Fri, 29 Sep 2023 19:03:52 +0200 Subject: [PATCH] fix(#25): error `the input device is not a TTY` from gcloud (#26) It happens when we try to capture the output in a variable using the flag `-it` on the `docker run` command. An interactive terminal cannot be created in this situaton. Closes #25 --- bin/gcloud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gcloud b/bin/gcloud index 6855bed..e0d337a 100755 --- a/bin/gcloud +++ b/bin/gcloud @@ -5,7 +5,7 @@ IMAGE=eu.gcr.io/google.com/cloudsdktool/google-cloud-cli:latest WORKDIR=/app # run from your working directory -docker run -it --rm \ +docker run --rm \ --platform linux/amd64 \ --volume $PWD:$WORKDIR \ --volumes-from gcloud-config \