Can't find external bash

Hello,

I’m trying to run terraform code using docker-compose and hashicorp/terraform:1.0.8 image.

My source code tries to run a shell script on a bash shell inside the docker container.

In wsl I don’t have any problem to run terraform plan but seems through docker I’m not able to run bash scripts in the code.

DO you have any idea how I can solve this problem?

Regards.