That worked! thanks a million!
On a 2nd thought, it might not be the best idea to use a named volume for TF_DATA_DIR, as each terraform module has its own `terraform init state and would need its own name volume.
It’s probably better to set the TF_PLUGIN_CACHE_DIR and back the container path with a volume and do terraform init
every time you run the container. I think the plugin cache should still speed things up, while keeping the named volume usable by multiple terraform modules. Then point TF_DATA_DIR to any existing path inside the container, so the files get written into the container file system.