Is there any to way to communicate among docker containers other than via sockets/network? I have read docker documentation which says we can link docker containers using --link option but it doesn't speicify how to transfer data/msg from one container to another. I have already created a container named checkram. Now I want to link a new container with this container and I run docker run -i -t --privileged --link=checkram:linkcheck --name linkcont topimg command. Then i checked env variable LINKCHECK_PORT in linkcont container which contains tcp://172.17.0.14:22. I don't know what to do with this ip and port and how to communicate with checkram container from linkcont container. can anyone help me out of this? Thanks in advance.

share|improve this question
    
that's not a question about programming and is much better suited for serverfault.com – JimiDini Oct 31 '14 at 10:43
1  
What kind of "communication" do you want? – Thomas Orozco Oct 31 '14 at 10:47
    
data should be exchanged among containers but not through sockets..whether it can be IPC or some other means..is it feasible? – user3550166 Oct 31 '14 at 10:48
    
@user3550166 No, not really. See this related question: stackoverflow.com/questions/23889187/… – Thomas Orozco Oct 31 '14 at 11:09
    
You could use volumes to mount the same volume in both containers and then write from one and read from the next. I am not sure of how efficient this model is but it allows you to communicate without using sockets. – Usman Ismail Oct 31 '14 at 20:34

There are several tools you can use to achieve running multiple docker containers and interact with them. docker has a tool: docker Compose where you can build and interact multiple containers.

Another tool that works as well: decking you can also use FIG, but i found decking was very straight forward and easy to configure. At that time when i was using decking, docker compose was not released yet. docker compose is a newer tool, yet it is developed by docker.

share|improve this answer
    
if you chose to use decking, then you will use decking to pass the environment variables to docker containers as parameters – AL-Tamimi Feb 3 '16 at 14:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.