官术网_书友最值得收藏!

Exposing ports

Our next new directive here is EXPOSE 8000. Remember how we used docker info to find out what port the NGINX container was using? This directive filled in that information in the metadata and is used by the Docker orchestration tooling to map incoming ports into the right ingress port on the container. Since Python's HTTP server starts its service on port 8000 by default, we use EXPOSE to inform Docker that whoever uses this container should make sure that they map this port on the host. You can also list multiple ports here with this directive but since our service is using only one, we will not need to use that right now.

主站蜘蛛池模板: 资源县| 额尔古纳市| 阳山县| 团风县| 灵璧县| 永和县| 疏附县| 老河口市| 东山县| 威远县| 蒙城县| 开鲁县| 德昌县| 喀喇| 宁都县| 洱源县| 涞水县| 铅山县| 错那县| 尼勒克县| 清水河县| 原平市| 平湖市| 全州县| 广昌县| 临邑县| 祁门县| 仙居县| 清徐县| 长乐市| 穆棱市| 平塘县| 名山县| 广东省| 闵行区| 临沭县| 双辽市| 平泉县| 萨嘎县| 浮梁县| 仁怀市|