
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A lightweight, standalone HTTP service for testing and development with WebSocket and Server-Sent Events (SSE) support. Perfect for mocking APIs, simulating network conditions, and testing real-time communication.
bash# Run with Docker docker run -p 8080:8080 bbdrummer/dummy-responder:latest # Test basic functionality curl http://localhost:8080/health # Test with custom parameters curl "http://localhost:8080/?responseCode=200&message=Hello&responseTime=1s"
bash# Simple response curl http://localhost:8080/ # Random status codes with 30% failure rate curl "http://localhost:8080/?responseCode=random&failureRate=0.3" # Simulate slow API (2 second delay) curl "http://localhost:8080/?responseTime=2s&message=Slow%20API" # Different content types curl "http://localhost:8080/?contentType=text/plain&message=Plain%20text"
bash# WebSocket (requires wscat: npm install -g wscat) wscat -c "ws://localhost:8080/ws?message=Hello&wsInterval=2s" # Server-Sent Events curl -N "http://localhost:8080/sse?message=Live%20Events&sseInterval=1s" # Interactive test page open http://localhost:8080/test
| Parameter | Description | Examples | Applies To |
|---|---|---|---|
responseCode | HTTP status code | 200, 404, 500, random | HTTP |
responseTime | Response delay | 100ms, 2s, random | HTTP |
failureRate | Error probability (0-1) | 0.1 (10%), 0.5 (50%) | HTTP |
message | Custom message | Hello World, API Down | All |
contentType | Response format | application/json, text/plain | HTTP |
wsInterval | WebSocket message interval | 1s, 500ms, 5s | WebSocket |
sseInterval | SSE event interval | 1s, 2s, 10s | SSE |
| Endpoint | Protocol | Description |
|---|---|---|
/ | HTTP | Configurable HTTP responses |
/health | HTTP | Health check endpoint |
/ws | WebSocket | Real-time message streaming |
/sse, /events | HTTP | Server-Sent Events streaming |
/test | HTTP | Interactive test page |
/swagger/ | HTTP | OpenAPI documentation |
bash# Basic run docker run -p 8080:8080 bbdrummer/dummy-responder # With custom port docker run -p 3000:8080 bbdrummer/dummy-responder # Background with restart policy docker run -d --restart unless-stopped -p 8080:8080 bbdrummer/dummy-responder
yamlversion: '3.8' services: dummy-responder: image: bbdrummer/dummy-responder:latest ports: - "8080:8080" restart: unless-stopped
yamlapiVersion: apps/v1 kind: Deployment metadata: name: dummy-responder spec: replicas: 1 selector: matchLabels: app: dummy-responder template: metadata: labels: app: dummy-responder spec: containers: - name: dummy-responder image: bbdrummer/dummy-responder:latest ports: - containerPort: 8080 resources: requests: memory: "32Mi" cpu: "50m" limits: memory: "128Mi" cpu: "200m" --- apiVersion: v1 kind: Service metadata: name: dummy-responder spec: selector: app: dummy-responder ports: - port: 80 targetPort: 8080
json{ "message": "Hello World", "requestInfo": { "method": "GET", "path": "/", "query": "responseCode=200&message=Hello" }, "timestamp": "2025-08-30T09:17:30Z", "config": { "responseCode": 200, "failureRate": 0.1, "responseTime": "1s", "message": "Hello World" } }
json{ "message": "Hello WebSocket", "counter": 1, "timestamp": "2025-08-30T09:17:30Z", "service": "dummy-responder", "type": "websocket" }
id: 1 event: message data: {"message":"Hello SSE","counter":1,"timestamp":"2025-08-30T09:17:30Z","service":"dummy-responder","type":"sse"}
bashcurl http://localhost:8080/health
json{ "status": "healthy", "service": "dummy-responder", "timestamp": "2025-08-30T09:17:30Z" }
Visit http://localhost:8080/test in your browser for an interactive test page where you can:
Visit http://localhost:8080/swagger/ for complete OpenAPI documentation with:
Perfect for developers who need a reliable, configurable service for testing and development! 🎯
Visit [***] for complete developers' documentation.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务