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

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.

主站蜘蛛池模板: 商都县| 蒲江县| 满洲里市| 白银市| 黑河市| 乐平市| 海安县| 中宁县| 南投市| 墨竹工卡县| 宁津县| 韶关市| 黄龙县| 稻城县| 遂宁市| 宿迁市| 龙口市| 晋中市| 南涧| 弋阳县| 克什克腾旗| 青铜峡市| 河池市| 桓台县| 浮梁县| 玉环县| 梅州市| 唐河县| 灵寿县| 宁蒗| 辽宁省| 额敏县| 汝南县| 武平县| 遂平县| 沂水县| 仙游县| 津市市| 崇信县| 双桥区| 兴业县|