mariotoffia / FluentDocker

Use docker, docker-compose local and remote in tests and your .NET core/full framework apps via a FluentAPI
Apache License 2.0
1.31k stars 97 forks source link

[Feature Request] Ability to "Kill" container #267

Open jeffijoe opened 2 years ago

jeffijoe commented 2 years ago

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.

mariotoffia commented 2 years ago

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

Cheers, Mario :)