From 6e3d6ddc6688c0175f9b29a8867e226af6381659 Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Tue, 18 Feb 2025 11:04:49 -0500 Subject: [PATCH] fix: add a troubleshooting update to the loadtesting docs (#26415) > no issue. something I ran into the last loadtest I ran. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Manual QA for all new/changed functionality --- .../loadtesting/terraform/readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/infrastructure/loadtesting/terraform/readme.md b/infrastructure/loadtesting/terraform/readme.md index 854ade8018f2..645cd2b0cf13 100644 --- a/infrastructure/loadtesting/terraform/readme.md +++ b/infrastructure/loadtesting/terraform/readme.md @@ -183,3 +183,22 @@ provider "docker" { } [...] ``` + +If you are getting the following error when running `terraform apply`: + +```sh +│ Error: Error building docker image: 1: The command '/bin/sh -c git clone -b $TAG --depth=1 --no-tags --progress --no-recurse-submodules https://github.com/fleetdm/fleet.git && cd /go/fleet/cmd/osquery-perf/ && go build .' returned a non-zero code: 1 +│ +│ with docker_registry_image.loadtest, +│ on ecr.tf line 46, in resource "docker_registry_image" "loadtest": +│ 46: resource "docker_registry_image" "loadtest" { +``` + +1. Check your Docker virtual machine settings. Open Docker Desktop, then open the settings (`cmd-,` + or the gear in the top right of the screen). Scroll down to the "Virtual Machine Options" + section. + +2. If you currently have the "Apple virtualization framework" setting selected, select the "Docker + VMM" option instead. Click "Apply & restart" in the bottom right. + +Once Docker has restarted, re-run `terraform apply` and you should be good to go!