Introduction
Problem
When starting docker FDO you get the following message
docker compose up --detach
WARN[0000] The "COMPOSE_PROJECT_NAME" variable is not set. Defaulting to a blank string.
The compose file is taken from our example page here. This variable should be used as documented
TFE_DISK_CACHE_VOLUME_NAME: "${COMPOSE_PROJECT_NAME}_terraform-enterprise-cache"
Even though Terraform Enterprise is starting and able to login any runs are not being executed.
Prerequisites
- You are using Terraform Enterprise FDO with Docker
Cause
This issue occurs when the release of Docker Compose installed on the system is to old.
docker info
Client: Docker Engine - Community
Version: 24.0.5
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.6.0 <-- Verify this version
Path: /usr/libexec/docker/cli-plugins/docker-compose
scan: Docker Scan (Docker Inc.)
Version: v0.23.0
Path: /usr/libexec/docker/cli-plugins/docker-scan
Solutions:
Upgrade the docker compose software to at least version 2.21.0 or higher
docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0 <-- Verify this version
Path: /usr/libexec/docker/cli-plugins/docker-compose
Outcome
The environment should start without issue
docker compose up --detach
[+] Running 2/2
✔ Network terraform-enterprise_default Created 0.1s
✔ Container terraform-enterprise-tfe-1 Started