Hi
I'm running dind as a sidecar container in a Kubernetes pod. And I'm trying to make sure that the dind container doesn't shutdown immediately when receiving a SIGTERM, but waits for the main container to gracefully shutdown first.
In order to achieve this, I'm overwriting the entry point with a command /bin/sh -c <some script>, where <some script> registers a trap handler which does the synchronization. But it seems that busybox simply ignores SIGTERM. And since no bash is installed, I don't see any way around this.
I guess I could simply create a new image based on dind and install bash. But working with the dind image directly would be the preferred way.
Do you see a way how I could achieve this?
Hi
I'm running
dindas a sidecar container in a Kubernetes pod. And I'm trying to make sure that thedindcontainer doesn't shutdown immediately when receiving a SIGTERM, but waits for the main container to gracefully shutdown first.In order to achieve this, I'm overwriting the entry point with a command
/bin/sh -c <some script>, where<some script>registers a trap handler which does the synchronization. But it seems thatbusyboxsimply ignores SIGTERM. And since nobashis installed, I don't see any way around this.I guess I could simply create a new image based on
dindand installbash. But working with thedindimage directly would be the preferred way.Do you see a way how I could achieve this?