
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
MySQL Server Exporter 收集 MySQL 服务器指标,供 Prometheus 监控使用。
https://github.com/prometheus/mysqld_exporter 商标说明:本软件列表由 Bitnami 打包。所提及的相关商标归各自公司所有,使用这些商标并不意味着任何关联或认可。
consoledocker run --name mysqld-exporter docker.xuanyuan.run/bitnami/mysqld-exporter:latest
这是由 Bitnami 构建和维护的强化、最小化 CVE 镜像。Bitnami 安全镜像基于云优化、安全强化的企业级 https://vmware.github.io/photon/%E3%80%82%E9%80%89%E6%8B%A9 BSI 镜像的理由:
每个镜像都附带有价值的安全元数据。您可以在 https://app-catalog.vmware.com/bitnami/apps 中查看元数据。注意:某些数据仅对 https://bitnami.com/ 用户可用。
如果您正在寻找我们基于 Debian Linux 的上一代镜像,请参阅 Bitnami Legacy 仓库。
非 root 容器镜像增加了额外的安全层,通常推荐用于生产环境。然而,由于它们以非 root 用户运行,特权任务通常被禁止。在我们的文档中https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-work-with-non-root-containers-index.html%E3%80%82
Dockerfile 链接了解更多关于 Bitnami 标签策略以及滚动标签和不可变标签之间的区别,请参阅https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html%E3%80%82
您可以通过查看分支文件夹中的 tags-info.yaml 文件(即 bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml)了解不同标签之间的对应关系。
通过关注 https://github.com/bitnami/containers 订阅项目更新。
获取 Bitnami MySQL Server Exporter Docker 镜像的推荐方式是从 https://hub.docker.com/r/bitnami/mysqld-exporter 拉取预构建镜像。
consoledocker pull docker.xuanyuan.run/bitnami/mysqld-exporter:latest
要使用特定版本,可以拉取带版本的标签。您可以在 Docker Hub Registry 中查看https://hub.docker.com/r/bitnami/mysqld-exporter/tags/%E3%80%82
consoledocker pull docker.xuanyuan.run/bitnami/mysqld-exporter:[TAG]
如果您希望自己构建镜像,可以克隆仓库,切换到包含 Dockerfile 的目录,然后执行 docker build 命令。请记住替换示例命令中的 APP、VERSION 和 OPERATING-SYSTEM 路径占位符为正确值。
consolegit clone https://github.com/bitnami/containers.git cd bitnami/APP/VERSION/OPERATING-SYSTEM docker build -t bitnami/APP:latest .
使用 https://docs.docker.com/engine/userguide/networking/%EF%BC%8C%E8%BF%90%E8%A1%8C%E5%9C%A8%E5%AE%B9%E5%99%A8%E5%86%85%E7%9A%84%E4%B8%8D%E5%90%8C%E6%9C%8D%E5%8A%A1%E5%8F%AF%E4%BB%A5%E8%BD%BB%E6%9D%BE%E5%9C%B0%E8%A2%AB%E5%BA%94%E7%94%A8%E5%AE%B9%E5%99%A8%E8%AE%BF%E9%97%AE%EF%BC%8C%E5%8F%8D%E4%B9%8B%E4%BA%A6%E7%84%B6%E3%80%82
连接到同一网络的容器可以使用容器名称作为主机名进行通信。
步骤 1:创建网络
consoledocker network create mysqld-exporter-network --driver bridge
步骤 2:在网络中启动 mysqld-exporter 容器
使用 --network <NETWORK> 参数执行 docker run 命令,将容器附加到 mysqld-exporter-network 网络。
consoledocker run --name mysqld-exporter-node1 --network mysqld-exporter-network docker.xuanyuan.run/bitnami/mysqld-exporter:latest
步骤 3:运行其他容器
我们可以使用相同的标志(--network NETWORK)在 docker run 命令中启动其他容器。如果您也为容器设置了名称,则可以在网络中将其用作主机名。
在 https://github.com/prometheus/mysqld_exporter#collector-flags 中查找所有配置标志。
Bitnami MySQL Server Exporter Docker 镜像(来自 https://www.arrow.com/globalecs/uk/products/bitnami-secure-images/ 目录)包含额外功能和设置,可将容器配置为具有 FIPS 功能。您可以配置以下环境变量:
OPENSSL_FIPS:OpenSSL 是否运行在 FIPS 模式。yes(默认)、no。Bitnami MySQL Server Exporter Docker 镜像将容器日志发送到 stdout。查看日志:
consoledocker logs mysqld-exporter
如果您希望以不同方式消费容器日志,可以使用 --log-driver 选项配置容器的https://docs.docker.com/engine/admin/logging/overview/%E3%80%82%E5%9C%A8%E9%BB%98%E8%AE%A4%E9%85%8D%E7%BD%AE%E4%B8%AD%EF%BC%8Cdocker 使用 json-file 驱动。
Bitnami 会在 upstream 发布后尽快提供 MySQL Server Exporter 的更新版本,包括安全补丁。我们建议您按照以下步骤升级容器。
步骤 1:获取更新的镜像
consoledocker pull docker.xuanyuan.run/bitnami/mysqld-exporter:latest
步骤 2:停止运行中的容器
使用以下命令停止当前运行的容器
consoledocker stop mysqld-exporter
步骤 3:删除当前运行的容器
consoledocker rm -v mysqld-exporter
步骤 4:运行新镜像
从新镜像重新创建容器。
consoledocker run --name mysqld-exporter docker.xuanyuan.run/bitnami/mysqld-exporter:latest
docker-compose.yaml 文件已被移除,因为它仅用于内部测试目的。0.12.1-centos-7-r175 被视为基于 CentOS 的最新镜像。我们欢迎您为此容器做出贡献。您可以通过创建 https://github.com/bitnami/containers/issues 或提交 https://github.com/bitnami/containers/pulls 来请求新功能或贡献代码。
如果您在运行此容器时遇到问题,可以提交 https://github.com/bitnami/containers/issues/new/choose%E3%80%82%E4%B8%BA%E4%BA%86%E8%AE%A9%E6%88%91%E4%BB%AC%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A5%BD%E7%9A%84%E6%94%AF%E6%8C%81%EF%BC%8C%E8%AF%B7%E5%8A%A1%E5%BF%85%E5%A1%AB%E5%86%99 issue 模板。
Copyright © 2025 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 bitnami/mysqld-exporter 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: