Sign inSign up

jonoh/cloudflared

By jonoh

Updated 6 days ago

Image
0

50K+

jonoh/cloudflared repository overview

DEPRECATED

This image is deprecated because Cloudflare provides official arm64 builds now. The repo will be kept alive to allow Renovate's auto-updates to run but no further changes will be made.

cloudflared

Unofficial Docker image containing cloudflared.

Usage

By default, prints the version and exits. To do something useful, override the command, for example:

docker run jonoh/cloudflared tunnel run my-tunnel
Environment Variables

You can see cloudflared's supported environment variables by running cloudflared [<subcommand>] --help.

In addition, these custom environment variables are supported. If all of them are set (and the command isn't overridden) then the image will execute cloudflared tunnel run with the configuration specified.

NameDescription
ACCOUNT_IDCloudflare Account ID
TUNNEL_IDTunnel ID
TUNNEL_NAMETunnel Name
TUNNEL_SECRETTunnel Secret
PUIDUser ID for the daemon (see Volumes)
Volumes

Mount /config so that cloudflared's configuration file can be saved.

The daemon runs as a user with id 65532 (like the official image). If this causes permission errors, you can override the uid by setting the PUID environment variable.

Example

Using docker-compose:

services:
    cloudflared:
        image: jonoh/cloudflared
        environment:
            - PUID=1000
            - ACCOUNT_ID=d41d8cd98f00b204e9800998ecf8427e
            - TUNNEL_ID=2e7d56f0-d51e-4c14-9330-5707b45d0813
            - TUNNEL_NAME=helloworld
            - TUNNEL_SECRET=aGVsbG93b3JsZF9oZWxsb3dvcmxkX2hlbGxvd29ybGQK
            - TUNNEL_URL=http://some_service:8080
        volumes:
            - ./config:/config

Tags

Tags mirror the cloudflared version, or you can just use latest.

Motivation

The official builds are only for amd64. There are other unofficial images, however I couldn't find one that was both multi-platform, and which was always kept updated.

Tag summary

Content type

Image

Digest

sha256:391e2bc33

Size

52.5 MB

Last updated

6 days ago

docker pull jonoh/cloudflared