Expected Outcome
Graceful shutdown of the tfc-agent
in Docker allowing the current Terraform run to finish successfully.
Prerequisites
- Terraform Cloud and Enterprise
- Docker deployed tfc-agent
Procedure
- Run the following command when stopping the
tfc-agent
in Docker to prevent the container from exiting while the run(plan or apply) is still in progress.# Replace tfc-agent with your container name
docker kill --signal SIGINT tfc-agent