重要提示:dotnet/nightly仓库的镜像包含https://github.com/dotnet/core%E4%B8%8B%E4%B8%80%E4%B8%AA%E7%89%88%E6%9C%AC%E7%9A%84last-known-good (LKG)构建。
有关https://github.com/dotnet/core%E5%AE%98%E6%96%B9%E5%8F%91%E5%B8%83%E7%89%88%E6%9C%AC%E7%9A%84%E9%95%9C%E5%83%8F%EF%BC%8C%E8%AF%B7%E5%8F%82%E8%A7%81https://hub.docker.com/r/microsoft/dotnet/%E3%80%82
2.3-preview
docker pull mcr.microsoft.com/dotnet/nightly/reverse-proxy:2.3-preview此镜像包含YARP的实现,YARP是.NET中的反向代理框架。
可关注https://github.com/dotnet/dotnet-docker/discussions/categories/announcements%E8%8E%B7%E5%8F%96Docker%E7%9B%B8%E5%85%B3%E7%9A%84.NET%E5%85%AC%E5%91%8A%E3%80%82
https://github.com/dotnet/dotnet-docker/blob/main/samples/README.md%E5%B1%95%E7%A4%BA%E4%BA%86.NET%E4%B8%8EDocker%E7%BB%93%E5%90%88%E4%BD%BF%E7%94%A8%E7%9A%84%E5%A4%9A%E7%A7%8D%E6%96%B9%E5%BC%8F%E3%80%82%E6%9C%89%E5%85%B3%E6%9B%B4%E5%A4%9A%E4%BF%A1%E6%81%AF%EF%BC%8C%E8%AF%B7%E5%8F%82%E8%A7%81%E4%B8%BA.NET%E5%BA%94%E7%94%A8%E6%9E%84%E5%BB%BADocker%E9%95%9C%E5%83%8F%E3%80%82
您可以运行此镜像以启动YARP实例。
YARP期望配置文件位于/etc/reverse-proxy.config,默认监听端口5000。
配置示例:
json{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "AllowedHosts": "*", "ReverseProxy": { "Routes": { "route1": { "ClusterId": "cluster1", "Match": { "Path": "/aspnetapp/{**catch-all}" }, "Transforms": [ { "PathRemovePrefix": "/aspnetapp" } ] } }, "Clusters": { "cluster1": { "Destinations": { "destination1": { "Address": "http://aspnetapp1:8080" } } } } } }
可使用以下命令(其中my-config.config是包含上述配置的文件):
bashdocker run --rm --name myaspnetapp -d -t mcr.microsoft.com/dotnet/samples:aspnetapp docker run --rm -v $(pwd)/my-config.config:/etc/reverse-proxy.config -p 5000:5000 --link myaspnetapp:aspnetapp1 mcr.microsoft.com/dotnet/reverse-proxy:latest
此示例会将所有来自http://localhost:5000/aspnetapp的请求代理到部署的mcr.microsoft.com/dotnet/samples:aspnetapp容器。
https://github.com/microsoft/reverse-proxy/tree/main/samples/%E5%8C%85%E5%90%AB%E6%9B%B4%E5%A4%9A%E9%85%8D%E7%BD%AE%E7%A4%BA%E4%BE%8B%E3%80%82
有关配置镜像的详细信息,请参见https://microsoft.github.io/reverse-proxy/articles/index.html%E5%8F%8A%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E9%85%8D%E7%BD%AE%E6%96%87%E6%A1%A3%E3%80%82
.NET:
.NET Framework:
可在Microsoft Artifact Registry门户或https://github.com/dotnet/dotnet-docker/blob/nightly/README.reverse-proxy.md#full-tag-listing%E6%9F%A5%E7%9C%8B%E5%BD%93%E5%89%8D%E6%A0%87%E7%AD%BE%E3%80%82
.NET容器镜像会定期监控CVE的存在。当满足以下条件时,会重新构建镜像以获取CVE修复:
有关在.NET镜像中遇到CVE时的处理方法,请参见https://github.com/dotnet/dotnet-docker/blob/main/SECURITY.md%E5%92%8Chttps://github.com/dotnet/dotnet-docker/blob/main/documentation/vulnerability-reporting.md%E3%80%82
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务