I think this should be configured in your cluster settings (e.g. AWS) and also docker containers should be given access to proper NIC interfaces.
I am not a docker expert, maybe check something like this
  
      
      Docker Documentation – 12 Apr 21
  
  
    

Container networking 1

How networking works from the container's point of view