gliderlabs / resolvable

Host-level DNS gateway for Docker
MIT License
315 stars 37 forks source link

resolvable should support Docker networks #30

Open helterscelter opened 7 years ago

helterscelter commented 7 years ago

I am attempting to use resolvable as a DNS resolver on my local host node (ie, developer workflow) so that I can access my docker containers by name (specifically looking to use the containter's hostname/container id/name).

however it appears that resolvable doesn't support docker networks:

2016/12/30 12:34:59 got local address: 172.17.0.2
2016/12/30 12:34:59 error adding container 5cc92799c26a: unknown network mode%!(EXTRA string=stormdocker_default)
2016/12/30 12:34:59 error adding container a9bf59ad937d: unknown network mode%!(EXTRA string=stormdocker_default)
2016/12/30 12:34:59 error adding container 9ca9b1a6ffb0: unknown network mode%!(EXTRA string=stormdocker_default)
2016/12/30 12:34:59 error adding container 0c69b5e8fe5c: unknown network mode%!(EXTRA string=stormdocker_default)

15 seems to reference this same issue, but mentions that if networks need to be supported then a new issue should be created specifically for that. so, here it is.

Iliyass commented 7 years ago

@helterscelter I faced the same issue, Did you fix it ? if so, i would like to know how you work around this

helterscelter commented 7 years ago

@iliyass I actually ended up forking a different repo and modifying it to suite my needs:

https://github.com/helterscelter/docker-dns-gen

eduwass commented 7 years ago

Seems like there's a fix attempt here: https://github.com/gliderlabs/resolvable/pull/24 But there's a test failing 😢
Would be awesome if someone had this finally implemented!