Two containers with different public ips

Lets say i have a server with 2 public IP addresses. I want to run 2 containers, both using the same image, and connect to the outside world using different IPs. How’s that possible?