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

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.

主站蜘蛛池模板: 高要市| 盐亭县| 双城市| 大兴区| 松桃| 中牟县| 彩票| 文成县| 仁布县| 怀安县| 嵊州市| 保靖县| 康马县| 西吉县| 怀仁县| 湖南省| 和政县| 朝阳区| 方正县| 南平市| 綦江县| 张家界市| 凤庆县| 武胜县| 贵阳市| 东海县| 邵阳市| 江山市| 石柱| 辛集市| 寿阳县| 华阴市| 利津县| 洪泽县| 永登县| 汝城县| 辽中县| 无为县| 方山县| 横峰县| 黔江区|