Skip to content

feature: connect to hyperdrive from inside a container #10320

@mnbf9rca

Description

@mnbf9rca

What versions & operating system are you using?

  System:
    OS: macOS 15.5
    CPU: (8) arm64 Apple M3
    Memory: 120.78 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.2.0 - /opt/homebrew/bin/node
    npm: 11.3.0 - /opt/homebrew/bin/npm
  npmPackages:
    @cloudflare/containers: 0.0.25 => 0.0.25 
    @cloudflare/workers-types: ^4.20250810.0 => 4.20250810.0 
    wrangler: ^4.28.1 => 4.28.1 

Please provide a link to a minimal reproduction

https://github.com/mnbf9rca/cloudflare-hyperdrive-container-mininal-repo

Describe the Bug

I have a python app deployed inside a container running on Cloudflare. The app is configured to use Hyperdrive for postgresql connectivity, but it is unable to connect.

Please provide any relevant error logs

psycopg2.OperationalError: could not translate host name "66c4c2b923f89002cbc61b8192b83e63.hyperdrive.local" to address: Name or service not known

Metadata

Metadata

Assignees

No one assigned

    Labels

    product:containersRelating to Cloudflare Containers: https://developers.cloudflare.com/containers/product:hyperdriveRelating to Cloudflare Hyperdrive: https://developers.cloudflare.com/hyperdrive/
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions