3

The situation is as follows:

Two containers reside in the same task definition.

A service with this task definition is running on a specific ec2 instance.

I've configured the VPC of this instance to use a NAT gateway. This has been successful I think, because I can now ping to google from the instance itself.

The problem however, is that the docker containers that are running on my instance don't have internet access.

Switching the network mode to bridge would obviously solve this problem, but I need bidirectional REST traffic in between these two containers. Only unidirectional traffic is possible with bridge-mode, as far as I know.

My question:

What can I do to gain internet access from within my containers?

Quinten Scheppermans
  • 954
  • 1
  • 10
  • 29

0 Answers0