#Prevent CTRL+C (SIGINT) killing the containers

1 messages · Page 1 of 1 (latest)

sturdy ibex
#

Hello, I'm using dagger (GoSDK) to containerize the terragrunt/terraform pipeline for provisioning infra as code. I notice that if I press CTRL+C during a provisioning it kills completely the underlying container. This behavior diverges from the normal use of e.g. Terraform that, instead, it will try to gracefully exit and save the state files.
Is there any practice to either intercept and/or propagate a signal inside the container to instruct the underlying process to exit gracefully?

fervent solstice
#

what kind of state would you expect to be saved?

#

dagger doesn't really manage any state in the way that terraform does