squadron icon indicating copy to clipboard operation
squadron copied to clipboard

Container starts on non available port

Open Carael opened this issue 4 years ago • 1 comments

Squadron containers uses automatic port assignment from Docker. The ports range starts from 32768 to 61000 and increments with every container created. If the port is already taken the docker api doesn't throw an exception or takes next port. It's also unclear how to reset the current port counter that's assigned since it's persisted across pc restarts or even docker removal from pc.

A bug is created on Docker Cli.

Possible solution is to set other port range on the system itself like described here .

Carael avatar Feb 26 '21 09:02 Carael

Similar problem.

Carael avatar Feb 26 '21 09:02 Carael