
如果你使用 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://img.shields.io/docker/pulls/traefik/whoami.svg](https://hub.docker.com/r/traefik/whoami/) https://github.com/traefik/whoami/workflows/Main/badge.svg?branch=master](https://github.com/traefik/whoami/actions)
Tiny Go webserver that prints OS information and HTTP request to output.
/[?wait=d]
Returns the whoami information (request and network information).
The optional wait query parameter can be provided to tell the server to wait before sending the response.
The duration is expected in Go's https://golang.org/pkg/time/#ParseDuration format (e.g. /?wait=100ms to wait 100 milliseconds).
/api
Returns the whoami information as JSON.
/bench
Always return the same response (1).
/data?size=n[&unit=u]
Creates a response with a size n.
The unit of measure, if specified, accepts the following values: KB, MB, GB, TB (optional, default: bytes).
/echo
WebSocket echo.
/health
Heath check.
GET, HEAD, ...: returns a response with the status code defined by the POSTPOST: changes the status code of the GET (HEAD, ...) response.| Flag | Env var | Description |
|---|---|---|
cert | Give me a certificate. | |
key | Give me a key. | |
cacert | Give me a CA chain, enforces mutual TLS | |
port | WHOAMI_PORT_NUMBER | Give me a port number. (default: 80) |
name | WHOAMI_NAME | Give me a name. |
verbose | Enable verbose logging. |
console$ docker run -d -P --name iamfoo traefik/whoami $ docker inspect --format '{{ .NetworkSettings.Ports }}' iamfoo map[80/tcp:[{0.0.0.0 32769}]] $ curl "http://0.0.0.0:32769" Hostname : 6e0030e67d6a IP : 127.0.0.1 IP : ::1 IP : 172.17.0.27 IP : fe80::42:acff:fe11:1b GET / HTTP/1.1 Host: 0.0.0.0:32769 User-Agent: curl/7.35.0 Accept: */*
console# updates health check status $ curl -X POST -d '500' http://localhost:80/health # calls the health check $ curl -v http://localhost:80/health * Trying ::1:80... * TCP_NODELAY set * Connected to localhost (::1) port 80 (#0) > GET /health HTTP/1.1 > Host: localhost:80 > User-Agent: curl/7.65.3 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 500 Internal Server Error < Date: Mon, 16 Sep 2019 22:52:40 GMT < Content-Length: 0
consoledocker run -d -P -v ./certs:/certs --name iamfoo traefik/whoami --cert /certs/example.cert --key /certs/example.key
ymlversion: '3.9' services: whoami: image: traefik/whoami command: # It tells whoami to start listening on 2001 instead of 80 - --port=2001 - --name=iamfoo
以下是 traefik/whoami 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务