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

docker-gen support detection of container creation/removal in remote nodes over a swarm? #267

Open
3fr61n opened this issue Dec 12, 2017 · 4 comments

Comments

@3fr61n
Copy link

3fr61n commented Dec 12, 2017

Hi

It seems that docker-gen in a multi node swarm only have visibility on containers that resides on the local host machine.

Is there any way to have visibility of what happens on remote nodes that belong to the same swarm?

Regards

@arefaslani
Copy link

@3fr61n checkout my image. It supports Swarm mode.

@miesgre
Copy link

miesgre commented Dec 18, 2018

Any news on this issue?

@candeemis
Copy link

I was looking a bit deeper into this issue and found that docker-gen is calling ListContainers function of the client in generator.go module, which returns the list of container from the current host/swarm-node only.

I was thinking it might be possible to get all the containers in the swarm by first getting the list of nodes, then getting the list of containers from each node and finally merging them all in one list. This may fix the problem from the root.

@nabheet
Copy link

nabheet commented Jan 1, 2024

@candeemis I like your proposal. Do you have time to implement it?

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

5 participants