这是一个 CoreDNS 服务器的 Docker 镜像。
1.2K
这是一个 CoreDNS 服务器的 Docker 镜像。
使用以下命令运行 CoreDNS 镜像:
docker run -d -p 53:53/udp -p 53:53/tcp \
-v ./Corefile:/etc/coredns/Corefile:cached \
liuweitao/coredns:latest
以下是 compose.yaml 文件示例:
services:
coredns:
image: liuweitao/coredns:latest
container_name: coredns
restart: always
volumes:
- ./Corefile:/etc/coredns/Corefile:cached
ports:
- 53:53/tcp
- 53:53/udp
服务配置使用官方的 CoreDNS 镜像,并映射了 53 端口的 TCP 和 UDP。Corefile 被挂载到容器中,使用 cached 模式以提高性能。
此镜像是 DockerHub-AutoBuild 项目的一部分: https://github.com/liuweitao/DockerHub-AutoBuild/
更多信息和更新,请访问 GitHub 仓库。
Content type
Image
Digest
sha256:a3b10aa31…
Size
25.7 MB
Last updated
12 days ago
docker pull liuweitao/coredns