Skip to content

have any function to exclude some CONTAINER use CONTAINER NAME or CONTAINER ID? #252

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

Open
blackcs opened this issue Sep 17, 2017 · 0 comments

Comments

@blackcs
Copy link

blackcs commented Sep 17, 2017

forgive me my poor english.
I am in this situation , i use docker-gen and filebeat to collect docker logs . i use mesos marathon cluster,so the docker is dynamic state. docker-gen and filebeat is Container on every physical machine ,so every time the docker state changed ,i use docker-gen notify filebeat to restart.

docker run -d --restart=always --name docker-gen
-v pwd:/etc/filebeat
-v /var/run/docker.sock:/tmp/docker.sock:ro
-v pwd/templates:/etc/docker-gen/templates
-t harbor.lamic.cn/base/docker-gen:with-curl -notify "curl --no-buffer -s -XPOST http://ifconfig eth0 |grep 'inet'|awk '{print $2}':2375/containers/filebeat/restart" -notify-output -watch /etc/docker-gen/templates/filebeat.tmpl /etc/filebeat/filebeat.yml

this situation will cause filebeat restart always.is there any function to exclude filebeat Container ,so that docker-gen docker monitor filebeat Container state. Have any function to exclude some CONTAINER use CONTAINER NAME or CONTAINER ID?thanks.

# 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

1 participant