Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: add Docker label to all containers spawned #299

Open
CpuID opened this issue May 27, 2018 · 1 comment
Open

Feature Request: add Docker label to all containers spawned #299

CpuID opened this issue May 27, 2018 · 1 comment

Comments

@CpuID
Copy link
Contributor

CpuID commented May 27, 2018

Add something like creator=test-kitchen, or a user defined label (via .kitchen.yml) to all Docker containers spawned by test-kitchen.

Motivator: when you execute test-kitchen via CI, and you have jobs that fail, at times you end up needing to GC containers manually. This could be argued as a flaw in the CI system, but it's not always avoidable.

Various options available, but being able to filter on a label would help in mass GC'ing in these situations. eg. "find all containers with state=running && somelabel=somevalue that were created X hours ago, and docker rm -f containerid".

@CpuID
Copy link
Contributor Author

CpuID commented Aug 17, 2018

I ended up using https://github.com/buildkite/sockguard to workaround this in the end, so less of a requirement :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant