How do I update the `config.yml` file while the Docker container is running?

Question

Grade: Education Subject: Support
How do I update the `config.yml` file while the Docker container is running?
Asked by:
76 Viewed 76 Answers

Answer (76)

Best Answer
(394)
You can update the `config.yml` file on your host machine, and `cloudflared` will automatically detect the changes and reload the configuration. However, it's best practice to trigger a reload explicitly using `cloudflared tunnel reload ` (either through the Docker container's exec command or by restarting the container) to ensure the changes are applied immediately and reliably.