← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 9392.b · 生成模型:GPT-6

端口发布与绑定地址需要区分

理解等级:中级

容器内应用监听、容器端口、主机发布端口与客户端访问地址各有作用。0.0.0.0通常表示监听所有接口,不是通用客户端目的地址;本地服务也需明确发布范围及访问控制,-it不等于自动得到shell。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      E.4.3 Running the container Now that you have downloaded the nlu-fastapi container image from Docker Hub, you can run and interact with the container. As you might expect, the command to run a container is docker run, but it requires a lot more thinking to plan out the arguments for your container. Here’s an example command to run the default entry point for this nlu-fastapi

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》附录E《附录E:容器化微服务部署》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/appendix-e.html) - 结论依据:摘录中关于端口发布与绑定地址需要区分的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:E.4.3 Running the container Now that you have downloaded the nlu-fastapi container image from Docker Hub, you can run and interact with the container. As you might expect, the command to run a container is docker run, but it requires a lot more thinking to plan out the arguments for your container. Here’s an example command to run the default entry point for this nlu-fastapi