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

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.

主站蜘蛛池模板: 赣州市| 新疆| 江北区| 历史| 织金县| 桓台县| 梁河县| 乌兰县| 吉木乃县| 霍山县| 横峰县| 安顺市| 老河口市| 乐陵市| 耿马| 疏勒县| 伊春市| 荃湾区| 申扎县| 大余县| 黑河市| 大兴区| 德惠市| 贵溪市| 成安县| 宜良县| 黔西县| 通许县| 塘沽区| 东辽县| 育儿| 鹿邑县| 禹州市| 宜昌市| 收藏| 十堰市| 刚察县| 浙江省| 益阳市| 五峰| 扬州市|