Files
code-snippets/docs/docker/cloudflared.md
Liam Pietralla cd3b5fd5e2
All checks were successful
Build, Test & Publish / Build (push) Successful in 29s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 41s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 1m17s
cloudflared update
2026-02-18 10:59:23 +11:00

481 B

Cloudflared Tunnel

Often times it's useful to spin up a tunnel to your local machine to test out your application. Cloudflared is a great tool for this, and it's very easy to use with Docker.

Usage

The following command will start a tunnel to your local machine on port 3000:

docker run --rm -p 3000:3000 cloudflare/cloudflared tunnel --url http://host.docker.internal:3000
docker run --rm cloudflare/cloudflared tunnel --url http://host.docker.internal:5173