Overview
- Full name
docker.io/kong/httpbin- Registry
- docker.io
- Namespace
- kong
- Repository
- httpbin
- Cached tags
- 10
- Last synced
- 07/05/2026, 11:01 AM
Introduction
Kong httpbin 镜像,HTTP 请求测试 Echo 服务,API 网关/代理调试与集成测试标准靶服务。
Details
kong/httpbin 提供 HTTP 请求 echo 测试服务,返回请求 headers、body、method 等信息,用于验证 HTTP 客户端与代理行为。定位为 --rm/长期运行的 HTTP 测试靶服务;API Gateway 路由调试、Ingress/代理配置验证或 CI HTTP 集成测试目标端点。
快速启动
docker run -d --name httpbin \
-p 8080:8080 \
docker.io/kong/httpbin:latest
推荐实践
docker run -d --name httpbin \
--restart unless-stopped \
-p 8080:8080 \
docker.io/kong/httpbin:0.1.0
核心参数说明
-p 8080:8080— HTTP echo 服务- 端点 — /get /post /headers 等
- 定位 — 测试/调试靶服务
- 勿 — 暴露公网(信息泄露)
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpbin
spec:
replicas: 1
selector:
matchLabels:
app: httpbin
template:
metadata:
labels:
app: httpbin
spec:
containers:
- name: httpbin
image: docker.io/kong/httpbin:0.1.0
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: httpbin
spec:
selector:
app: httpbin
ports:
- port: 8080
targetPort: 8080
内网测试 namespace 部署。
Latest tags (20)
View all 10 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/kong/httpbin :latest | linux/amd64linux/arm64 | 2025/01/10 05:38 | 265.4 MB | sha256:13e9d5c5f61a… | |||
docker.io/kong/httpbin :0.2.3 | linux/amd64linux/arm64 | 2025/01/10 05:38 | 265.4 MB | sha256:13e9d5c5f61a… | |||
docker.io/kong/httpbin :0.2.3-rc.2 | linux/amd64linux/arm64 | 2025/01/10 05:25 | 265.4 MB | sha256:78cc1b530b75… | |||
docker.io/kong/httpbin :0.2.2 | linux/amd64linux/arm64 | 2025/01/08 09:43 | 262.9 MB | sha256:2c4ebf66568e… | |||
docker.io/kong/httpbin :0.2.1 | linux/amd64linux/arm64 | 2024/10/28 18:00 | 264.6 MB | sha256:6b7621377c31… | |||
docker.io/kong/httpbin :0.2.0 | linux/amd64linux/arm64 | 2024/09/24 18:41 | 260.7 MB | sha256:f142bf7c8d53… | |||
docker.io/kong/httpbin :0.1.0 | linux/amd64linux/arm64 | 2022/06/23 14:47 | 238.3 MB | sha256:9d65a5b1955d… | |||
docker.io/kong/httpbin :sha-ea5c777 | linux/amd64linux/arm64 | 2022/06/16 16:21 | 264.8 MB | sha256:d6cd0a70010b… | |||
docker.io/kong/httpbin :sha-7ea2c1a | linux/amd64linux/arm64 | 2022/06/16 16:18 | 264.8 MB | sha256:8e875c695666… | |||
docker.io/kong/httpbin :repo-setup | linux/amd64linux/arm64 | 2022/06/16 16:18 | 264.8 MB | sha256:8e875c695666… |