# 注意

haproxy：负载均衡中间件，对tcp/IP协议的负载均衡支持的非常的好。

nginx：负载均衡中间件，对http协议支持的非常好，所以做一些web反向代理。

## entrypoint,cmd区别

[docker学习笔记12：Dockerfile 指令 ENTRYPOINT介绍](https://www.cnblogs.com/51kata/p/5262107.html)

[Dockerfile RUN，CMD，ENTRYPOINT命令区别](https://www.jianshu.com/p/f0a0f6a43907)

自我提醒：

1. 在docker run 启动时最后的参数会覆盖掉Dockerfile中的CMD命令

2.docker run 加上 --entrypoint的方式可以替换掉Dockerfile中的entrypoint指令

3.如果没有２的覆盖，entrypoint一定会被执行


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docker.shujuwajue.com/zhu-yi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
