docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

How about swarm? (again)

Open auzty opened this issue 8 years ago • 4 comments

I see that this version of docker-gen only watch the container over docker socket, there is a chance to improve this docker-gen to suport swarm mode? because the github.com/fsouza/go-dockerclient already support swarm api,

or if i want to modify this docker-gen, what code that will be affected when i try to change the api value ListContainers(docker.ListContainersOptions{......}) become ListServices(docker.ListServicesOptions{}) ??

i see that the parameter required for the nginx-proxy are ENV variable and can get it from the service api instead inspect the container :smile:

Thanks you

auzty avatar Mar 01 '17 10:03 auzty

still relevant ?

revolunet avatar Nov 14 '17 20:11 revolunet

@auzty did you resolve your problem? if yes what's your final solution?

dukecheng avatar Jan 17 '18 08:01 dukecheng

I'm searching for a way to get multi host swam network ip address of a container with docker-gen. Is there a solution?

pwFoo avatar Apr 19 '18 14:04 pwFoo

Checkout my image. It's written in javascript and will be developed easily. Pull requests are welcome 🙂

arefaslani avatar Apr 23 '18 13:04 arefaslani