Skip to content

Can't use docker-gen notify-sighup with Docker Cloud, container names are dynamic #209

New issue

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

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

Already on GitHub? # to your account

Closed
christiansyoung opened this issue Aug 25, 2016 · 5 comments

Comments

@christiansyoung
Copy link

I am trying to use docker-gen together with an nginx container on Docker Cloud. I am having trouble with the sighup sent by docker-gen when e.g. my application containers changes config. Docker Cloud generates random names for my containers, e.g. nginx-test-1.test.7321ba3a. I can't specify container_name in the Docker Cloud Stack YAML file as you can with docker-compose.

The error I get is:

Sending container 'nginx-test' signal '1'
Error sending signal to container: No such container: nginx-test

Is there any way to utilize e.g. links: nginx-test or something to work around this? Alternatives? I don't know Go, so I am having trouble looking over the code.

@jwilder
Copy link
Collaborator

jwilder commented Aug 25, 2016

Not currently. #77 sounds similar. I think docker-gen would need to be able to signal a container using something other than names. Possibly labels, images, etc.. That is not possible right now.

@jwilder jwilder closed this as completed Aug 25, 2016
@Theaxiom
Copy link

Theaxiom commented Apr 7, 2017

This guy did it, could you please duplicate his changes?

@Theaxiom
Copy link

Theaxiom commented Apr 7, 2017

It really sucks that I am not able to use this on Docker Cloud

@A34
Copy link

A34 commented Nov 2, 2017

This guy did it too: https://hub.docker.com/r/helder/docker-gen/

@Theaxiom
Copy link

Theaxiom commented Nov 2, 2017

Thanks @A34 I will definitely be using that image. 👍

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

No branches or pull requests

4 participants