SvenDowideit / dockerfiles

dockerfiles that I use
http://fosiki.com
MIT License
212 stars 60 forks source link

DNS Resolve Problems #13

Closed ReedD closed 9 years ago

ReedD commented 9 years ago

I'm trying to setup ambassador linking between my dockers and I'm using your dockerfile here as my ambassador. The issue I'm having is that I am unable to get it to work when I use a hostname, it only works when I use an IP address.

# This works
docker run -t -i -name sql_ambassador -expose 3306 -e MYSQL_PORT_3306_TCP=tcp://<xxx>.<xxx>.<xxx>.<xxx>:3306 svendowideit/ambassador

# This doesn't
docker run -t -i -name sql_ambassador -expose 3306 -e MYSQL_PORT_3306_TCP=tcp://domain.com:3306 svendowideit/ambassador

From within the docker I am also unable to get wget or ping to resolve google.com or any other address for that matter. I tried setting a different DNS with the --dns option but to no avail. I believe it might have something to do with this issue here with busybox which was reported after the most recent build of svendowideit/ambassador. However, even when I generate a new ambassador with the a new docker-ut built with the new busybox, I'm still unable to get any hosts to resolve. I'm hoping you might be able to shed some light on this for me or point me in the right direction. Any assistance would be greatly appreciated.

ReedD commented 9 years ago

Never mind I was able to solve this here.