Re: Running Pyro (nameserver for now) in a Docker container
Giovanni Porcari <[email protected]> Wed, 16 Jul 2014 20:14:01 +0200
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
> Il giorno 16/lug/2014, alle ore 19:50, Steven Pav <[email protected]> ha scritto: > > Hello; > > I am excited to start using Pyro4. To ease deployment in our organization, I > plan on running services in Docker containers (see http://docker.io/ or > http://continuousdelivery.uglyduckling.nl/uncategorized/using-docker-as-a- > python-development-environment/ ). To start, I tried to deploy the nameserver > in a docker container. However, I am unable to locate the nameserver once it > is running. I believe this might be related to some of the issues noted in > this post: http://comments.gmane.org/gmane.comp.python.pyro/2490 , namely > that the nameserver running within the docker container has funny ideas about > the name of the localhost, or what port it should be listening on, etc. > > As a MWE, I have posted the Dockerfile and some shell code to run it here: > https://gist.github.com/shabbychef/72657f769eba7ddeed9d . When I run it, I > can confirm that the container with the nameserver is running, however, I > cannot communicate with it, rather I get the error: > > Failed to locate the name server: Failed to locate the nameserver > > Any help debugging this would be appreciated. > Hi i am a pyro4 user and also a docker user. I never used nameserver but i suppose that the container should have UDP enabled and maybe you should also expose also the broadcast server port. I think that it is more a docker configuration problem than a pyro one. Using docker i use unix-socket for pyro and it works very well. Ciao G ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds