Some documentation from reading the docker source code about what -p
formats can be given to the docker run -p FORMAT IMAGE
FORMAT can be:
- -p FRONT:BACK which maps FRONT on the host to BACK in the container
- -p :PORT which is the same as -p PORT:PORT
This turns into "PortSpecs": [FRONT, BACK] config
It is related to the EXPOSE command in a dockerfile like EXPOSE FRONT:BACK
or more typically EXPOSE BACK