Cloudflare Containers now supports SSH for debugging running instances
SSH Access to Container Instances
Cloudflare Containers now supports SSH connectivity to running instances, enabling developers to directly access and interact with containerized applications. This capability is accessed through Wrangler, Cloudflare's command-line tool for Workers and Containers.
How to Enable SSH
To use this feature, configure SSH access in your container configuration file (wrangler.jsonc or wrangler.toml):
- Set
wrangler_ssh.enabledtotrue - Add your
ssh-ed25519public key(s) to theauthorized_keysarray with a descriptive name
Using SSH
Once configured, connect to a running instance with:
wrangler containers ssh <INSTANCE_ID>
You can also execute single commands without an interactive session:
wrangler containers ssh <INSTANCE_ID> -- ls -al
Find instance IDs using wrangler containers instances <APPLICATION>.
Use Cases
SSH access enables developers to:
- Debug running container applications in real-time
- Inspect active processes and their state
- Execute one-off diagnostic or maintenance commands
- Troubleshoot issues without redeployment