-1

Was following discussions in this article. We want to bring up our Dockerized application in ECS and currently the application run as a standalone docker container using the command

docker run --net=host -d -p PORT:PORT My-APP

The question is - if we migrate to ECS - does this --net-host setting Map to the Host Networking Mode in ECS? enter image description here

1 Answers1

0

Yes:

If the network mode is host, the task bypasses Docker's built-in virtual network and maps container ports directly to the EC2 instance's network interface directly. In this mode, you can't run multiple instantiations of the same task on a single container instance when port mappings are used.

Samuel Karp
  • 4,373
  • 22
  • 34