communication between containers in docker

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.

  • Dockerfile - CMD does not run the shell script
  • docker-compose swarm without docker-machine
  • AWS cloudwatch terminal output logs
  • Docker containers communication without exposing ports
  • How to fix server error while pushing an image to the Docker hub?
  • Reference Zeppelin to Spark Master (in Docker Container)
  • how do you securely push an image to a docker 1.13 registry:2 service from outside the swarm?
  • Write to a file on docker container gives error: No such file or directory
  • COPY with docker but with exclusion
  • Docker: Layering on top of shared volume
  • docker registry push error
  • Neither “docker stop”, “docker kill” nor “docker -f rm” works
  • One Solution collect form web for “communication between containers in docker”

    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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.