You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The container metadata file is written to the filesystem as expected. When looking at the content of the file it appears as if the value of the Port Mappings are taken literally from the Task definition and don't actually reflect the running state of the container instance, in cases where HostPort is set to 0
Description
There are many instances where knowing the actual Host port the container is bound to from inside the container is helpful. Reading through the issues that are attached to the PR to enable this information seem to suggest that this case should be covered.
Summary
When setting the environment variable:
ECS_ENABLE_CONTAINER_METADATA=true
The container metadata file is written to the filesystem as expected. When looking at the content of the file it appears as if the value of the Port Mappings are taken literally from the Task definition and don't actually reflect the running state of the container instance, in cases where HostPort is set to
0
Description
There are many instances where knowing the actual Host port the container is bound to from inside the container is helpful. Reading through the issues that are attached to the PR to enable this information seem to suggest that this case should be covered.
#288
Expected Behavior
The PortMapping section of the ECS Metadata would contain the actual port mapping in cases where
0
was used to dynamically assign a port on the host.Observed Behavior
The Port Mapping section contains the literal value of 0
Environment Details
Supporting Log Snippets
The text was updated successfully, but these errors were encountered: