cloudflared DOH for Raspberry Pi arm7l i.e. 64bit arch
246
This image is based on alpine and supports cloudflared DOH for Raspberry Pi arm7l i.e. 64bit arch armhf. Simply pulling mickysharam/cloudflared:latest should retrieve the correct image for your pi arch.
docker run -d \
--name=cloudflareDOH
-e UPSTREAM1=https://1.1.1.1/dns-query \
-e UPSTREAM2=https://1.0.0.1/dns-query \
-e PORT=5054 \
-e ADDRESS=0.0.0.0 \
-e METRICS=0.0.0.0:8080 \
-p 5054:5054/udp \
-p 5054:5054/tcp \
-p 8080:8080/tcp \
--restart unless-stopped \
mickysharam/cloudflared
---
version: "2"
services:
cloudflared:
image: mickysharam/cloudflared
container_name: cloudflareDOH
environment:
UPSTREAM1: https://1.1.1.1/dns-query
UPSTREAM2: https://1.0.0.1/dns-query
PORT: 5054
ADDRESS: 0.0.0.0
METRICS: 0.0.0.0:8080
ports:
- 5054:5054/tcp
- 5054:5054/udp
- 8080:8080/tcp
restart: unless-stopped
That's it.
This image uses environment variables for configuration.
| Available variables | Default value | Description |
|---|---|---|
UPSTREAM1 | https://1.1.1.1/dns-query | Upstream DNS Server |
UPSTREAM2 | https://1.0.0.1/dns-query | Upstream DNS Server |
PORT | 5054 | DNS Port for local machine |
ADDRESS | 0.0.0.0 | Address for Local DNS resolver |
METRICS | 0.0.0.0:8080 | CloudFlare Metrics |
FROM alpine:latest
LABEL maintainer="Micky"
ENV UPSTREAM1 https://1.1.1.1/dns-query
ENV UPSTREAM2 https://1.0.0.1/dns-query
ENV PORT 5054
ENV ADDRESS 0.0.0.0
ENV METRICS 127.0.0.1:8080
ENV MAX_UPSTREAM_CONNS 0
RUN apk update && \
apk add --no-cache wget libc6-compat && \
wget https://github.com/cloudflare/cloudflared/releases/download/2021.9.1/cloudflared-linux-arm64 -O cloudflared
RUN chmod +x cloudflared
RUN mv cloudflared /usr/local/bin/cloudflared
HEALTHCHECK --interval=5s --timeout=3s --start-period=5s CMD nslookup -po=${PORT} cloudflare.com 127.0.0.1 || exit 1
CMD ["/bin/sh", "-l", "-c", "/usr/local/bin/cloudflared proxy-dns --address ${ADDRESS} --port ${PORT} --metrics ${METRICS} --upstream ${UPSTREAM1} --upstream ${UPSTREAM2} --max-upstream-conns ${MAX_UPSTREAM_CONNS}"]
Content type
Image
Digest
Size
43.2 MB
Last updated
almost 5 years ago
docker pull mickysharam/cloudflared