logo
Published on

Configuration

Authors
  • avatar
    Name
    Bowen Y
    Twitter

Hostname VS Container Name

Host Port = 0

In an AWS ECS (Elastic Container Service) task definition, if you set the host port as 0 in the port mapping of a container definition, it enables dynamic port mapping. This means that ECS will automatically assign an available port from the EC2 instance (or the underlying infrastructure) to the container.