Skip to content

Example of using two docker containers communicating through sockets

License

Notifications You must be signed in to change notification settings

FBorowiec/talking_containers

Repository files navigation

Talking Containers

Example of using two docker containers communicating through sockets.

In this example one container is reciting Shakespeare's Hamlet to another assuming an average reading speed of 150 words per minute.

How to run

Use docker-compose up inside the docker folder to start the communication between the two containers.

How to run the code locally with Bazel already installed on host

Optionally you can also run it locally (don't forget to change the config/settings.ini IP address to localhost):

Once you have successfully installed Bazel you can run the code in two separate terminals using:

docker run //:run_container -- -t "server"
docker run //:run_container -- -t "client"

Bazel installation

Install Bazel

Dockerhub

The container image is available at:

hub.docker.com/repository/docker/framaxwlad/talking_container

About

Example of using two docker containers communicating through sockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published