I have a program running each in one docker container and they communicate with each other. Because the container are running on mostly one machine, I want to emulate a WAN for these containers to simulate packet loss, latency, delay, etc. Is there a lightweight solution for this?
I have looked up WANem but it seems I need to put that in an extra virtual machine and put that between the communication of the docker containers. What would be ideal is a program running in each docker container which emulates latency, packet loss, etc.