FluentDocker icon indicating copy to clipboard operation
FluentDocker copied to clipboard

[Feature Request] Ability to "Kill" container

Open jeffijoe opened this issue 3 years ago • 1 comments

Loving this library, fantastic work!

I was wondering if it would be possible to introduce a .Kill() on IContainerService that would use docker kill?

When tearing down an integration test, we usually don't want to wait for the container to gracefully exit, since they are disposable anyway. Some images like Google's PubSub emulator in the image gcr.io/google.com/cloudsdktool/cloud-sdk:emulators seems to ignore the SIGTERM and so it'll take an extra 10 seconds for .Stop() to finish.

jeffijoe avatar Jul 06 '22 19:07 jeffijoe

This is an excellent idea! I'll add it to my todo list!

Cheers, Mario :)

mariotoffia avatar Jul 08 '22 15:07 mariotoffia