Getting: Failed to start container: The container is not running, consider calling start()
Getting: Failed to start container: The container is not running, consider calling start()


start and wait for the port to be up:start on the constructor? Is there an example?
switchPort, rather than downgrading or using containerFetch(). However, it does seem like a design inconsistency that the port must always be specified in local environments but not in production.fetch() method using a helper from @cloudflare/containers, like this:switchPortcontainerFetch()@cloudflare/containers await container.start({
envVars: {} // The env vars
})
await container.startAndWaitForPorts(4000);import { extractPort } from '@cloudflare/containers';
override async fetch(request: Request): Promise<Response> {
return this.containerFetch(request, extractPort(request));
}