use fetch not containerFetch, as per: https://developers.cloudflare.com/containers/examples/websocke
use fetch not containerFetch, as per: https://developers.cloudflare.com/containers/examples/websocket/
container.fetch that should do the trick?defaultPort?: Optional default port to use when communicating with the container. If not set, you must specify port in containerFetch calls, or use switchPort.So if not using containerFetch (and not using default port), use normal fetch like:
container.fetch(switchPort(request, port))
**Do not use 'containerFetch' when trying to send a Request object with a websocket, until this issue is addressed. You can overcome this limitation by doing: container.fetch(switchPort(request, port))https://github.com/cloudflare/containers/tree/main
AssertionError: Build ID should be set if containers are defined and enabled when running integration tests with containers enabled?
--build-args or something similar when building a Dockerfileimage_vars in the Wrangler config under containersARG or something like thathttps://dash.cloudflare.com/<account-id>/billing/billable-usage so the best thing it seems would be to use the GraphQL analytics api"The image registry does not exist" {
"containers": [
{
"class_name": "MyContainer",
"image": "./Dockerfile",
"max_instances": 10,
"instance_type": "basic",
"image_vars": {
"FOO": "BAR"
}
}
]
}