Docker Community Forums

Share and learn in the Docker community.

Container running in my ec2 instance on aws are not whitelisted by the private ip of the server


i am deploying my services on a small docker swarm in aws and i found out that the containers that are running in the swarm are not white listed by services that whitelisted the Private ip of the ec2 instance that they are running on.

is there a way to make the container have both the private ip and public ip of the instance they are running on ?