had do to all of this to get this to work docker run -p 2551:2551 --net host --name seed-2 akka-docker-cluster:2.3.4 --seed
On Monday, October 20, 2014 at 3:31:17 PM UTC-4, tsvika wrote: > > Thanks Rafal! > --net=host worked just fine. The links you provided are great and > informative :) > > On Wednesday, October 15, 2014 12:41:03 AM UTC+3, Rafał Krzewski wrote: >> >> The problem arises because the IP where actor system binds itself and the >> IP where the messages actually arrives from the other node differ. >> Here's a merged but yet unreleased change that will provide easy >> workaround for this problem: https://github.com/akka/akka/pull/15610 >> Another workaround that you can use now is to run docker with --net=host. >> It's described in this blog post: >> http://blog.blikk.co/build-deploy-distributed-scala-apps-akka-docker-coreos/ >> that you'll probably find interesting ;) >> Yet another solution would be creating a VPN between the docker >> containers, using https://github.com/coreos/flannel >> >> Cheers, >> Rafał >> >> W dniu wtorek, 14 października 2014 23:13:47 UTC+2 użytkownik tsvika >> napisał: >>> >>> 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://[email protected]:2551] - Leader >>> is moving node [akka.tcp://[email protected]: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:// >>> >>> [email protected]: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://[email protected]:2551/]] arriving >>> at [akka.tcp://[email protected]:2551] inbound addresses are >>> [akka.tcp://[email protected]: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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
