
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!https://github.com/tuxpeople/docker-debugcontainer/actions/workflows/release.yml/badge.svg !https://img.shields.io/github/last-commit/tuxpeople/docker-debugcontainer !https://img.shields.io/docker/pulls/tdeutsch/debugcontainer !https://img.shields.io/docker/stars/tdeutsch/debugcontainer !https://img.shields.io/docker/image-size/tdeutsch/debugcontainer
基于Alpine Linux构建的全面调试容器,集成60多种网络、性能测试和故障排除工具,用于调试容器基础设施,尤其是Kubernetes环境。
amd64 和 arm64latest - 最新标记版本x.y.z、x.y、x - 语义化版本标签(例如:1.0.0、1.0、1)nightly - 每日定时任务自动构建devel - 主分支的最新版本(每次推送时构建)bash# Docker Hub docker pull tdeutsch/debugcontainer:latest # GitHub Container Registry docker pull ghcr.io/tuxpeople/debugcontainer:latest
tcpdump, nmap, mtr, iperf3, netcat, socat, arping, ethtool, tcptraceroute, ngrep, bind-tools, dnsperf, sslscan
kubectl, crane, flux, ytt, imgpkg, oras
mariadb-client, azure-cli
minio-client, nfs-utils, rsync
fio, hdparm, ioping, iozone, speedtest-cli
bash, curl, wget, jq, yq, vim, git, screen, tmux, htop, lsof, tree, mc, p7zip
在运行的Kubernetes Pod中启动交互式shell:
bashkubectl run debugcontainer --rm -it --image=tdeutsch/debugcontainer:latest -- /bin/bash
测试连接性和DNS解析:
bash# 运行容器进行网络调试 docker run -it --rm tdeutsch/debugcontainer:latest /bin/bash # 在容器内 - 测试DNS nslookup example.com dig example.com # 测试连接 ping -c 3 8.8.8.8 mtr google.com # 端口扫描 nmap -p 80,443 example.com # 带宽测试 iperf3 -c iperf.example.com
部署为sidecar以捕获另一个容器的流量:
yamlapiVersion: v1 kind: Pod metadata: name: app-with-debug spec: containers: - name: app image: your-app:latest - name: debugger image: tdeutsch/debugcontainer:latest securityContext: capabilities: add: ["NET_ADMIN", "NET_RAW"] command: ["/bin/sleep", "inf"]
然后进入sidecar并捕获流量:
bashkubectl exec -it app-with-debug -c debugger -- tcpdump -i any -w /tmp/capture.pcap
测试磁盘I/O性能:
bashdocker run -it --rm -v /path/to/test:/workdir tdeutsch/debugcontainer:latest /bin/bash # 在容器内 cd /workdir /scripts/hdd-perf.sh
使用ORAS操作容器registry:
bashdocker run -it --rm tdeutsch/debugcontainer:latest /bin/bash # 推送制品到registry oras push myregistry.io/myartifact:v1 ./file.txt # 拉取制品 oras pull myregistry.io/myartifact:v1 # 检查ORAS版本 cat /etc/oras-version
bashdocker run -it --rm tdeutsch/debugcontainer:latest /bin/bash # 测试MySQL/MariaDB连接 mysql -h database.example.com -u user -p # Azure CLI操作 az login az account list
bash# 为本地平台构建 docker build -t debugcontainer:local . # 为多平台构建 docker buildx build --platform linux/amd64,linux/arm64 -t debugcontainer:local .
欢迎贡献!请在GitHub上提交issue或pull request。
注意:本项目使用规范提交(conventional commits)进行自动版本控制。提交消息必须遵循以下格式:
feat: 用于新功能(次要版本更新)fix: 用于bug修复(补丁版本更新)chore:、docs:、refactor: 用于非发布变更详见LICENSE文件。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务