Packer build always fails with the same error, despite Docker being available in the Github Actions VM
/usr/bin/docker run --name a33c12322f8a924574dc38fbec9262f3df46b_5ee040 --label 8a33c1 --workdir /github/workspace --rm -e TERRAFORM_CLI_PATH -e CLOUDSDK_METRICS_ENVIRONMENT -e GCLOUD_PROJECT -e GOOGLE_APPLICATION_CREDENTIALS -e PACKER_LOG -e INPUT_COMMAND -e INPUT_ARGUMENTS -e INPUT_TARGET -e INPUT_WORKING_DIRECTORY -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/carto/carto":"/github/workspace" 8a33c1:2322f8a924574dc38fbec9262f3df46b
2021/05/31 17:13:28 [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/05/31 17:13:28 [TRACE] discovering plugins in /bin
2021/05/31 17:13:28 [TRACE] discovering plugins in /github/home/.packer.d/plugins
2021/05/31 17:13:28 [TRACE] discovering plugins in .
2021/05/31 17:13:28 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/05/31 17:13:28 [INFO] PACKER_CONFIG env var set; attempting to open config file: /github/home/.packerconfig
2021/05/31 17:13:28 [WARN] Config file doesn't exist: /github/home/.packerconfig
2021/05/31 17:13:28 [INFO] Setting cache directory: /github/workspace/packer_cache
Running in background, not using a TTY
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] listing potential installations for "github.com/hashicorp/docker" that match ">= 0.0.7". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/bin/packer", ".", "/github/home/.packer.d/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000042180)}}}}
2021/05/31 17:13:28 [TRACE] Found the following "github.com/hashicorp/docker" installations: [{/github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 v0.0.7}]
2021/05/31 17:13:28 [INFO] found external [-packer-default-plugin-name-] builders from docker plugin
2021/05/31 17:13:28 [INFO] found external [import push save tag] post-processors from docker plugin
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] Starting external plugin /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 start builder -packer-default-plugin-name-
2021/05/31 17:13:28 Starting plugin: /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 []string{"/github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64", "start", "builder", "-packer-default-plugin-name-"}
2021/05/31 17:13:28 Waiting for RPC address for: /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Plugin address: unix /tmp/packer-plugin270514859
2021/05/31 17:13:28 Received unix RPC address for /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64: addr is /tmp/packer-plugin270514859
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Waiting for connection...
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Serving a plugin connection...
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 [TRACE] starting builder -packer-default-plugin-name-
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] Starting internal plugin packer-provisioner-file
2021/05/31 17:13:28 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-file"}
2021/05/31 17:13:28 Waiting for RPC address for: /bin/packer
2021/05/31 17:13:28 packer-provisioner-file plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/05/31 17:13:28 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/05/31 17:13:28 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /github/home/.packerconfig
2021/05/31 17:13:28 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /github/home/.packerconfig
2021/05/31 17:13:28 packer-provisioner-file plugin: [INFO] Setting cache directory: /github/workspace/packer_cache
2021/05/31 17:13:28 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/05/31 17:13:28 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin189403135
2021/05/31 17:13:28 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin189403135
2021/05/31 17:13:28 packer-provisioner-file plugin: Waiting for connection...
2021/05/31 17:13:28 packer-provisioner-file plugin: Serving a plugin connection...
2021/05/31 17:13:28 [TRACE] Starting internal plugin packer-provisioner-shell
2021/05/31 17:13:28 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-shell"}
2021/05/31 17:13:28 Waiting for RPC address for: /bin/packer
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /github/home/.packerconfig
2021/05/31 17:13:28 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /github/home/.packerconfig
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] Setting cache directory: /github/workspace/packer_cache
2021/05/31 17:13:28 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/05/31 17:13:28 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin286216968
2021/05/31 17:13:28 packer-provisioner-shell plugin: Waiting for connection...
2021/05/31 17:13:28 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin286216968
2021/05/31 17:13:28 packer-provisioner-shell plugin: Serving a plugin connection...
2021/05/31 17:13:28 [TRACE] Starting internal plugin packer-provisioner-shell
2021/05/31 17:13:28 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-shell"}
2021/05/31 17:13:28 Waiting for RPC address for: /bin/packer
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /github/home/.packerconfig
2021/05/31 17:13:28 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /github/home/.packerconfig
2021/05/31 17:13:28 packer-provisioner-shell plugin: [INFO] Setting cache directory: /github/workspace/packer_cache
2021/05/31 17:13:28 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/05/31 17:13:28 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin260885246
2021/05/31 17:13:28 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin260885246
2021/05/31 17:13:28 packer-provisioner-shell plugin: Waiting for connection...
2021/05/31 17:13:28 packer-provisioner-shell plugin: Serving a plugin connection...
2021/05/31 17:13:28 [TRACE] validateValue: not active for workdir, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for port, so skipping
2021/05/31 17:13:28 [TRACE] validateValue: not active for project-id, so skipping
2021/05/31 17:13:28 [TRACE] Starting external plugin /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 start post-processor tag
2021/05/31 17:13:28 Starting plugin: /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 []string{"/github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64", "start", "post-processor", "tag"}
2021/05/31 17:13:28 Waiting for RPC address for: /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64
2021/05/31 17:13:28 Received unix RPC address for /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64: addr is /tmp/packer-plugin579846483
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Plugin address: unix /tmp/packer-plugin579846483
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Waiting for connection...
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Serving a plugin connection...
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 [TRACE] starting post-processor tag
2021/05/31 17:13:28 [TRACE] Starting external plugin /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 start post-processor push
2021/05/31 17:13:28 Starting plugin: /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64 []string{"/github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64", "start", "post-processor", "push"}
2021/05/31 17:13:28 Waiting for RPC address for: /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64
2021/05/31 17:13:28 Received unix RPC address for /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64: addr is /tmp/packer-plugin528156026
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Plugin address: unix /tmp/packer-plugin528156026
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Waiting for connection...
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 Serving a plugin connection...
2021/05/31 17:13:28 packer-plugin-docker_v0.0.7_x5.0_linux_amd64 plugin: 2021/05/31 17:13:28 [TRACE] starting post-processor push
2021/05/31 17:13:28 Build debug mode: false
2021/05/31 17:13:28 Force build: false
2021/05/31 17:13:28 On error: abort
2021/05/31 17:13:28 Waiting on builds to complete...
2021/05/31 17:13:28 Starting build run: docker.python
2021/05/31 17:13:28 Running builder:
2021/05/31 17:13:28 [INFO] (telemetry) Starting builder
2021/05/31 17:13:28 [INFO] (telemetry) ending
==> Wait completed after 2 milliseconds 439 microseconds
2021/05/31 17:13:28 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2021/05/31 17:13:28 machine readable: docker.python,error []string{"exec: \"docker\": executable file not found in $PATH"}
==> Builds finished but no artifacts were created.
Build 'docker.python' errored after 2 milliseconds 403 microseconds: exec: "docker": executable file not found in $PATH
2021/05/31 17:13:28 Cancelling builder after context cancellation context canceled
==> Wait completed after 2 milliseconds 439 microseconds
==> Some builds didn't complete successfully and had errors:
--> docker.python: exec: "docker": executable file not found in $PATH
==> Builds finished but no artifacts were created.
2021/05/31 17:13:28 [INFO] (telemetry) Finalizing.
2021/05/31 17:13:29 waiting for all plugin processes to complete...
2021/05/31 17:13:29 /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64: plugin process exited
2021/05/31 17:13:29 /bin/packer: plugin process exited
2021/05/31 17:13:29 /bin/packer: plugin process exited
2021/05/31 17:13:29 /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64: plugin process exited
2021/05/31 17:13:29 /bin/packer: plugin process exited
2021/05/31 17:13:29 /github/home/.packer.d/plugins/github.com/hashicorp/docker/packer-plugin-docker_v0.0.7_x5.0_linux_amd64: plugin process exited