Hi,

I'm using mukis.de 
<http://mukis.de/pages/akka-cluster-with-docker-containers/> example of 
Akka cluster application using docker. Here are the steps:

   1. Created and published the docker image to docker hub.
   2. Created two EC2 instances inside a VPC, running docker using these 
   instructions 
   <http://docker.readthedocs.org/en/v0.7.3/installation/amazon/>. The 
   private IPs are 10.0.0.10 and 10.0.0.11.
   3. Created 2 security groups allowing port 2551 on 10.0.0.0/16 and 
   172.17.0.0/16 and associating the instances with these groups.
   4. Pulled the docker images from docker hub.
   5. Run the first seed node on 10.0.0.10 using: docker run -i -t -p 2551:
   2551 akka-docker:2.3.4 --seed
   6. From looking at the console, the akka application runs on 
   172.17.0.2:2551: [akka.tcp://application@172.17.0.2:2551] - Leader is 
   moving node [akka.tcp://application@172.17.0.2:2551] to [Up]
   7. Run the second seed node on 10.0.0.11 using: docker run -i -t -p 2551:
   2551 akka-docker:2.3.4 --seed 172.17.0.2:2551. From looking at the 
   consoles of both applications it doesn't look like the nodes are aware of 
   each other.
   8. When I'm trying to run the second node using the host private ip 
   instead of docker provided ip: docker run -i -t -p 2551:2551
    akka-docker:2.3.4 --seed 10.0.0.10:2551, I get this error on the first 
   seed node console: [ERROR] [10/14/2014 21:08:35.155] 
   [application-akka.remote.default-remote-dispatcher-7] 
   
[akka.tcp://application@172.17.0.2:2551/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fapplication%40172.17.0.3%3A2551-0/endpointWriter]
 
   dropping message [class akka.actor.ActorSelectionMessage] for non-local 
   recipient [Actor[akka.tcp://application@10.0.0.10:2551/]] arriving at 
   [akka.tcp://application@10.0.0.10:2551] inbound addresses are 
   [akka.tcp://application@172.17.0.2:2551].

Can you please advise what am I doing wrong here?

Thanks!

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to