[GH-ISSUE #169] ERROR: Failed to check Terraform version: Command '['terraform', '-v']' returned non-zero exit status 2. #98

Closed
opened 2026-05-06 12:37:27 +02:00 by BreizhHardware · 5 comments

Originally created by @Vishybear on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/169

docker run --rm -it -v $(pwd):/project terravision draw --source /Users/Documents/Coding/Terraform/terraform-examples-aws/

this is what I'm running on a self built docker container on a MacBook Air m1

each time I get the error in the title

Originally created by @Vishybear on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/169 docker run --rm -it -v $(pwd):/project terravision draw --source /Users/Documents/Coding/Terraform/terraform-examples-aws/ this is what I'm running on a self built docker container on a MacBook Air m1 each time I get the error in the title
Author
Owner

@patrickchugh commented on GitHub (Feb 15, 2026):

Which version of docker are you using ? Can you try using the docker image from docker hub instead of the self built one ? @Vishybear

<!-- gh-comment-id:3904843665 --> @patrickchugh commented on GitHub (Feb 15, 2026): Which version of docker are you using ? Can you try using the docker image from docker hub instead of the self built one ? @Vishybear
Author
Owner

@Vishybear commented on GitHub (Feb 15, 2026):

1.14.5 on the laptop. a docker Deep Dive says 1.10.5 on the container

<!-- gh-comment-id:3905106413 --> @Vishybear commented on GitHub (Feb 15, 2026): 1.14.5 on the laptop. a docker Deep Dive says 1.10.5 on the container
Author
Owner

@patrickchugh commented on GitHub (Feb 16, 2026):

Did the docker hub image work ?

<!-- gh-comment-id:3906677168 --> @patrickchugh commented on GitHub (Feb 16, 2026): Did the docker hub image work ?
Author
Owner

@Vishybear commented on GitHub (Feb 16, 2026):

I can't pull the image on a Mac - I get that it cant find an arm version.
I can pull it on the PC and it works without the error - I just need to figure out how to reference the files

the rebuilt Mac version will run the --help command

Image
<!-- gh-comment-id:3907375931 --> @Vishybear commented on GitHub (Feb 16, 2026): I can't pull the image on a Mac - I get that it cant find an arm version. I can pull it on the PC and it works without the error - I just need to figure out how to reference the files the rebuilt Mac version will run the --help command <img width="877" height="314" alt="Image" src="https://github.com/user-attachments/assets/458c2285-e955-4eb6-a370-e725bfbe46e6" />
Author
Owner

@patrickchugh commented on GitHub (Feb 19, 2026):

you just need to make sure the TF source files are accessible in current folder or a subfolder of it since the docker command maps $pwd - your current folder - as a volume. I have added arm64 support to the DockerHub image now as well. Please try again and let me know if i can close this issue @Vishybear

<!-- gh-comment-id:3927812684 --> @patrickchugh commented on GitHub (Feb 19, 2026): you just need to make sure the TF source files are accessible in current folder or a subfolder of it since the docker command maps $pwd - your current folder - as a volume. I have added arm64 support to the DockerHub image now as well. Please try again and let me know if i can close this issue @Vishybear
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/terravision#98
No description provided.