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

I've encountered an inconsistency with

I've encountered an inconsistency with how wrangler dev and wrangler deploy handle Docker build contexts. The Issue: When I place my Dockerfile in a subdirectory (e.g., cf-worker/containers/project-a/Dockerfile) and set the image field in wrangler.jsonc to './containers/project-a/Dockerfile': wrangler dev builds successfully...

@Mike Nomitch can you guys create a

@Mike Nomitch | Workers PM can you guys create a containers-help and a bugs channel?

When running Containers locally on macOS

When running Containers locally on macOS, fetch()ing to the Container throws a Container port not found error even after a while the Container has this.ctx.container!.start()ed, which is causing startAndWaitForPorts() to time out. Is it just me or are there any workaround, or is it a known bug? I'm using the latest template from Cloudflare....

can we connect to the hyperdrive using

can we connect to the hyperdrive using containers?

I have a doubt about cloudflare

I have a doubt about cloudflare containers. I have a video processing work load which downlaod the video from r2 and do some processing and send the results to database. Is there any time restrictions for container run time? because it probably take more time depend upon the video size. I think container should call from worker and worker have a time execution limit.

Containers have some sort of

Containers have some sort of simultaneous open connection limits like Workers do?

does that mean that there must be a http

does that mean that there must be a http based entry point for containers to work ?

Is there a way to access/upload to local

Is there a way to access/upload to local R2 from my container or do I have to run wrangler dev --remote to work with workers + containers + r2? I'm using S3 API to interact with R2 from my container.

would be great if we could define memory

would be great if we could define memory/cpu at runtime. i have a few async job flows i deploy via cloudrun, examples are generating videos or zip files, and the amount of memory/disk space is relative to number of input files. atm i use up to 8 vcpu/16gb, so probably awhile before containers is usable as a product

Are containers supported in multi config

Are containers supported in multi config development (wrangler dev -c package/a -c package/b) ? Currently geting container image path resolving issues when running the dev command from root repository.
The image "./Dockerfile" does not appear to be a valid path to a Dockerfile
The image "./Dockerfile" does not appear to be a valid path to a Dockerfile
...

Has anyone solved this kind of error yet

Has anyone solved this kind of error yet? Would love ideas on what to try to get it working.

I'm having an issue with container

I'm having an issue with container configuration where instance_type setting isn't working: ```json "containers": [ {...

i just deployed a very first worker with

i just deployed a very first worker with container, but its been about 30 minutes, the instance status is stuck at inactive. is that normal?

Hasura

Hi, I am getting this error while trying to get Hasura running: Error checking if container is ready: connect(): Connection refused: container port not found. Make sure you exposed the port in your container definition....

Guys how do I access env vars set via

Guys how do I access env vars set via wrangler secret put <KEY> setting it this way ...

[ERROR] Making POST request to undefined/api/execute/

Attempting to run @cloudflare/sandbox, simply running: ``` const sandbox = getSandbox(env.SANDBOX, "sandbox-test"); const result = await sandbox.exec("ls", args ?? []);...

browser does see that it's an event-

browser does see that it's an event-stream, it does get the first event but then it does not do anything. the Docker container when ran in standolone mode, is working of course

How long should the containers take to

How long should the containers take to build during local development? I'm using one of the basic go examples and the built step takes ~1 minute. Is this normal?
=> [build 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o /server 53.4s
=> [build 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o /server 53.4s
...

Docker buildx support

Is there a way to use docker buildx with wrangler deploy? I had to create a custom builder for my environment via docker buildx create but wrangler is not using it.

any examples of a worker using hono +

any examples of a worker using hono + containers?