Is posible define range of port to use in expose `-P` in docker? -
is posible limit range of ports expose -p
parameter, as:
docker daemon --range-ports=2000-2099...
docker run -p...
<- ports used between 2000 , 2099
or
docker daemon...
docker run -p --range-ports=2000-2099...
<- ports used between 2000 , 2099`
you can give range of ports mapped;
docker run -d -p 8000-9000:5000 training/webapp python app.py
Comments
Post a Comment