I am looking for a software that simulates a physical Ethernet switch and uses containers such as Docker. The goal is to have one container that host a Python application that communicates with the other container via a switch. Note, everything mentioned above will be hosted on my laptop.
I have looked into the software called Open vSwitch, but all the examples I have found use virtual machines instead of containers. I have attached a picture below to demonstrate what I would like to achieve.