A very simple Java client-server project to show how to communicate between two docker images.
docker build -t serverimage . docker build -t clientimage .
docker run --net=host -it -P --name server serverimage docker run --net=host -it -P --name client clientimage