infrastructureascode/hello-world一个支持Prometheus监控的Docker "Hello World" Web服务器。该镜像最初在Docker Hub上以infrastructureascode/hello-world名称发布,现在也可在GitHub容器注册表中获取,镜像名为ghcr.io/infrastructure-as-code/hello-world。
| 注册表名称 | 镜像名称 |
|---|---|
| GitHub Container Registry | ghcr.io/infrastructure-as-code/hello-world |
| Docker Hub | infrastructureascode/hello-world |
/始终返回HTTP 200状态码和"Hello, World!"消息。/metrics端点,返回Prometheus指标。/health,返回空响应和HTTP 200状态码。bashdocker build --rm -t ghcr.io/infrastructure-as-code/hello-world .
镜像通过GitHub Actions在代码标记/推送时构建,并直接推送到GitHub Container Registry。可在包页面查看最新标记版本。
此外,每个镜像中二进制文件的sha1sum会在构建过程中输出(在构建日志中查找"Show binary info"),以满足溯源需求。
bash# 启动容器 docker run \ --detach \ --name hello-world \ --publish 8000:8080 \ ghcr.io/infrastructure-as-code/hello-world # 访问根路径 curl [***] # 访问健康检查端点(返回空响应) curl [***] # 访问Prometheus指标 curl [***]



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务