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: Ability to retrieve a container object by attributes #20

Closed
CpuID opened this issue May 22, 2016 · 3 comments
Closed

Comments

@CpuID
Copy link
Contributor

CpuID commented May 22, 2016

Example: https://github.com/mauricioklein/docker-compose-api/blob/master/README.md

compose.get_containers_by(label: 'foo', name: 'bar') # Returns an array of all containers with label = 'foo' and name = bar

Right now there doesn't seem to be an ability to fetch an object with the current running container attributes, which is preventing me from using this gem. Would it be possible to get something similar?

@CpuID CpuID changed the title Feature Request: Ability to retrieve a container by attribute Feature Request: Ability to retrieve a container object by attributes May 22, 2016
xeger added a commit that referenced this issue May 25, 2016
@xeger
Copy link
Owner

xeger commented May 25, 2016

I prototyped this for you, @CpuID: #21

Let me know if it meets your needs; I'll tweak and/or add some tests sometime tomorrow.

xeger added a commit that referenced this issue May 25, 2016
xeger added a commit that referenced this issue May 25, 2016
@CpuID
Copy link
Contributor Author

CpuID commented May 25, 2016

Thanks! I'll take a look and report back.

@CpuID
Copy link
Contributor Author

CpuID commented Jun 4, 2016

@xeger comments in the PR - re one part of the functionality. Otherwise looking good :)

@xeger xeger closed this as completed in fb491bf Jun 4, 2016
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

2 participants