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
For example, the sidetree-mock component uses the following port number: 48326
In Linux, however, by default ephemeral port range is from 32768 to 60999: https://en.wikipedia.org/wiki/Ephemeral_port
This means that any random port in this range may already be in use for the outgoing TCP connection by some app running on the system (e.g. by the browser).
When this is the case, any container which is set to expose that port will fail to start.
This does not happen often, but this causes some random container start failures.
This should at least be documented. Ideally, ports from the ephemeral range (32768 to 60999) should not be used.
As a temporary workaround, on Linux users can modify their ephemeral port range: sudo sysctl net.ipv4.ip_local_port_range='49152 65535'
The text was updated successfully, but these errors were encountered:
project-administrator
changed the title
Avoid using ports from ephemeral range
Containers may fail to start randomly on Linux
Mar 4, 2021
project-administrator
changed the title
Containers may fail to start randomly on Linux
Containers might fail to start randomly on Linux
Mar 4, 2021
project-administrator
changed the title
Containers might fail to start randomly on Linux
Containers might fail to expose port during the startup
Mar 5, 2021
For example, the sidetree-mock component uses the following port number: 48326
In Linux, however, by default ephemeral port range is from 32768 to 60999: https://en.wikipedia.org/wiki/Ephemeral_port
This means that any random port in this range may already be in use for the outgoing TCP connection by some app running on the system (e.g. by the browser).
When this is the case, any container which is set to expose that port will fail to start.
This does not happen often, but this causes some random container start failures.
This should at least be documented. Ideally, ports from the ephemeral range (32768 to 60999) should not be used.
As a temporary workaround, on Linux users can modify their ephemeral port range:
sudo sysctl net.ipv4.ip_local_port_range='49152 65535'
The text was updated successfully, but these errors were encountered: