Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

guys I am seeing coldboot times of up to

guys I am seeing coldboot times of up to 5m

I see this in the FAQ

I see this in the FAQ
Container cold starts can often be the 2-3 second range, but this is dependent on image size and code execution time, among other factors.
Is this an estimate based on a certain size container?...

@Mike Nomitch - Any suggestion with

@Mike Nomitch - Any suggestion with containers in regards to splitting video/audio conversion between containers and a vps? I heard 50mb or less for containers but I am curious your thoughts on what it can handle.

I'm trying to deploy just the hello-

I'm trying to deploy just the hello-containers example but on npm run dev it builds and hangs at Starting local server.... I can access the main page with listen endpoints but navigating to any of them results in 500 errors. All setup using defaults for that template. This is in WSL context.

The blog that announced containers are

The blog that announced containers are coming explicitly mentioned ffmpeg, but I can't see anyway of making this work. The compression example is the closest, but I don't even see how that would work when the response needs to fit inside 1MB? R2 bindings don't work with containers either, right? Is there any examples of ffmpeg to checkout?...

Still getting stuck here, I just can't

Still getting stuck here, I just can't figure out why it doesn't like my setup. - My app is definitely running on 8080 - My image is within all limits - If I pull and run the image locally everything works completely fine ...

i saw a couple of questions re: long-

i saw a couple of questions re: long-running containers (e.g. a Discord bot), is that a use case that CF containers support? it seems like this could be hacked together with a cron acting as a keepalive and a long value for sleepAfter, but are there other limitations to be aware of?

👋 could somebody point me in the right

👋 could somebody point me in the right direction. I'm setting my container's env variables like this: ``` import { Container, getRandom } from "@cloudflare/containers"; ...

A lot of pain trying to use CF

A lot of pain trying to use CF containers, from one issue to the other

am i reading this correctly that

am i reading this correctly that containers still require you to run a node cf worker and route requests to the container? I was hoping I could just deploy a docker image without any worker glue sitting in front

I'm assuming my container is not

I'm assuming my container is not starting in dev because onStart is not called (and docker ps returns nothing) but it is impossible to debug. I'm not getting any logs or error messages from inside the container, only the fetch error from the worker to the container? When deploying it is the same but I do get some messages (e.g. Error checking 4848: The container is not listening in the TCP address 10.0.0.1:4848) but still nothing useful... How can I access the logs from what is happening inside the container?...

What if I want to interact with a kv

What if I want to interact with a kv namespace within a container? Using the rest API doesn't seem to be the most optimal solution

quite a useless question, however does

quite a useless question, however does anyone know roughly when containers could expect to be released in GA (e.g. is it expected to follow the same timeline as CloudFlare Workflows: Oct 24, 2024 - beta, 6 Apr 2025 ~~ so roughly 6 months?)

actually nm i think they are coming up

actually nm i think they are coming up wih something better listenTcp @6 (filter :IpFilter, handler :TcpHandler) -> (handle :Capability); https://github.com/cloudflare/workerd/blob/645f2864d03995f102adbc8b8ea1c01fc4c023c3/src/workerd/io/container.capnp#L73C2-L73C80

I've also gotten an instance to spawn in

I've also gotten an instance to spawn in Japan, note I haven't been providing any locationHint, I've been curious to see where instances will spawn on their own

I’m working on deploying an image but

I’m working on deploying an image but keep running into issues building. From what I can tell I’m building on an arm host/VM but deployment requires a amd64 build. I added —platform=linux/amd64 to my FROM in docker but I’m still having issues....

Hello 👋 I am trying to run an otel

Hello 👋 I am trying to run an otel collector as a container It looks like this: ``` docker pull otel/opentelemetry-collector-contrib:0.128.0...

If I’m already running 'wrangler dev'

If I’m already running 'wrangler dev' inside of docker (we have a monorepo where each worker in a monorepo runs in its own docker container), is there any chance this workflow would be supported for workers using cloudflare containers?

registry push issues

same for me, i tried logging out and in. for me it loops like this: ``` Login Succeeded Image does not exist remotely, pushing: registry.cloudflare.com/3ac73ad157bc18d2890dfd70f000bd07/mycontainer:5f39f398 The push refers to repository [registry.cloudflare.com/3ac73ad157bc18d2890dfd70f000bd07/mycontainer]...

Anyone run into the `[ERROR] Forbidden`

Anyone run into the [ERROR] Forbidden err manually deploying? This is the hello-container -> deploys ok when via cf Github action, but this fails ```...