
The port number on the container instance to reserve for your container. You can call DescribeTasks to view the hostPortRange whichĪre the host ports that are bound to the container ports.
#Traffic between ephemeral ports how to#
The first port in the range must be less than last port in the range.ĭocker recommends that you turn off the docker-proxy in the Docker daemon config file when you have a large number of ports.įor more information, see Issue #11185 on the Github website.įor information about how to turn off the docker-proxy in the Docker daemon config file, see Docker daemon in the Amazon ECS Developer Guide. You cannot specify overlapping port ranges. The containerPortRange valid values are between 1 andĪ port can only be included in one port mapping per container. The hostPort is set to the same value as theįor containers in a task with the bridge network mode, the Amazon ECS agent finds open host ports from the default ephemeral range and passes it to docker to bind them to the container ports. The following rules apply when you specify a containerPortRange:įor containers in a task with the awsvpc network mode, The port number range on the container that's bound to the dynamically mapped host port Reserved ports limit of a container instance. Port mappings that are automatically assigned in this way do not count toward the 100 Specify a container port and not a host port, your container automatically receives a If you use containers in a task with the bridge network mode and you Network mode, specify the exposed ports using containerPort. If you use containers in a task with the awsvpc or host The port number on the container that's bound to the user-specified or automatically Only the tasks that Amazon ECS services create are supported with Service Connect.įor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide. That collects logs and metrics for increased visibility. Tasks connect through a managed proxy container Tasks can connect to services across all of the clusters in the namespace. Tasks that run in a namespace can use short names to connect If you don't set a value for this parameter, then TCP is used. Parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS console and CloudWatch. Protocol-specific connection handling to the Service Connect proxy. If you set this parameter, Amazon ECS adds We recommend that you set this parameter to be consistent with the

The application protocol that's used for the port mapping.
