Timeline for How can I expose more than 1 port with Docker?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2021 at 7:42 | comment | added | CᴴᴀZ |
I tried exposing multiple ports using multiple -p flags but it only exposed one port (the last argument of -p). I am using Docker Desktop with Docker Engine v20.10.5
|
|
Jun 3, 2020 at 11:40 | comment | added | variable | Is it is possible to map multiple docker ports to 1 host port? | |
Dec 1, 2017 at 14:17 | comment | added | tgogos |
I think the correct term here is publish not expose .
|
|
Jul 1, 2015 at 20:15 | comment | added | Lanti | Multiple ports can halting the init process under a systemd service file? | |
May 14, 2015 at 13:13 | comment | added | Ted Avery |
@GiovanniBitliner I'm still pretty new to this, but I'm pretty sure you would define ports in a Dockerfile with EXPOSE, then perform docker run -P (note the uppercase) which automatically exposes all ports defined with EXPOSE in the Dockerfile
|
|
Jan 21, 2015 at 21:21 | comment | added | Giovanni Bitliner |
Is there a way to specify the ports in a config file? For example using the option --env-file ?
|
|
Aug 21, 2014 at 22:46 | history | edited | Chris Seymour | CC BY-SA 3.0 |
deleted 7 characters in body
|
Jul 14, 2014 at 19:32 | comment | added | Ted M. Young |
Thanks! Found this in the docs here: docs.docker.com/userguide/dockerlinks/… where it says Note: The -p flag can be used multiple times to configure multiple ports.
|
|
Dec 31, 2013 at 6:16 | vote | accept | nubela | ||
Dec 31, 2013 at 3:57 | history | answered | Tania Ang | CC BY-SA 3.0 |