This is a simple example of how you can share memory blocks between containers using Docker and Python3 SharedMemory library.
docker-compose up
Or alternatively (and with more work), build and run the transmitter and receiver individually:
docker build ./transmitter/ --tag "transmitter:shm"
docker build ./receiver/ --tag "receiver:shm"
docker run --ipc="shareable" [TRANSMITTER_IMAGE_ID]
docker run --ipc="container:[TRANSMITTER_CONTAINER_ID]" [RECEIVER_IMAGE_ID]
This example was created by Felipe Hamm, Rodrigo Faria and Luiz Doniec.
https://docs.docker.com/engine/reference/commandline/build/
https://docs.docker.com/engine/reference/run/#ipc-settings---ipc
https://docs.python.org/3/library/multiprocessing.shared_memory.html