- Deployment with Docker
- Srdjan Grubor
- 117字
- 2021-07-02 23:22:13
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.
推薦閱讀
- 數(shù)據(jù)展現(xiàn)的藝術(shù)
- 玩轉(zhuǎn)智能機(jī)器人程小奔
- Photoshop CS4經(jīng)典380例
- 機(jī)艙監(jiān)測與主機(jī)遙控
- 精通特征工程
- Pig Design Patterns
- Mastering ServiceNow Scripting
- 零起點(diǎn)學(xué)西門子S7-200 PLC
- Excel 2010函數(shù)與公式速查手冊
- 統(tǒng)計(jì)挖掘與機(jī)器學(xué)習(xí):大數(shù)據(jù)預(yù)測建模和分析技術(shù)(原書第3版)
- R Machine Learning Projects
- 工業(yè)機(jī)器人實(shí)操進(jìn)階手冊
- 納米集成電路制造工藝(第2版)
- PHP求職寶典
- 數(shù)字多媒體技術(shù)與應(yīng)用實(shí)例