Tried to update cloudflare tunnel in my docker container

I’m facing an issue with updating my Cloudflare Tunnel that’s running via Docker. I recently got a message saying my Cloudflared version is outdated and recommended upgrading to the latest version (2025.1.0). However, when I copied the updated Docker run command from my Cloudflare Tunnel page and ran it, I encountered the following errors: 2025/01/22 19:16:35 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details. 2025-01-22T19:17:10Z ERR Request failed error="stream 65 canceled by remote with error code 0" ... 2025-01-22T19:17:10Z ERR Request failed error="stream 61 canceled by remote with error code 0" ...
GitHub
UDP Buffer Sizes
A QUIC implementation in pure Go. Contribute to quic-go/quic-go development by creating an account on GitHub.
1 Reply
Ryan
Ryan2w ago
sudo cat /etc/sysctl.d/99-sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
net.core.rmem_max=10000000
net.core.wmem_max=10000000
net.ipv4.ip_forward=1
sudo cat /etc/sysctl.d/99-sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
net.core.rmem_max=10000000
net.core.wmem_max=10000000
net.ipv4.ip_forward=1
you need to configure on host, not inside container also I use docker-compose to simplify all of this.
version: '3.9'
services:
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: unless-stopped
command: tunnel run --token <input token here>
version: '3.9'
services:
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: unless-stopped
command: tunnel run --token <input token here>
the docker-compose.yml script is as easy as this when you need to update, you just shutdown (docker-compose down -v), remove docker image and docker-compose up -d again im guessing if you dont want to use docker-compose, when you shutdown the container, remove the current docker image and get it to repull the latest when you build again

Did you find this page helpful?