Open random port

I use docker to deploy software using a random RTP port. How can I expand a wide range of ports? Can I open all ports of a docker instance?

I was unable to find a way to do this in the Docker documentation.

+4
source share
1 answer

This is currently not possible (Docker 1.0.1).

Other people have expressed serious interest in being able to expose and publish port ranges, and the Docker team is fine with this, see here .

Some code was even suggested (see traction request here ).

, , , , , - .

+7

Source: https://habr.com/ru/post/1545376/


All Articles