#Container-to-Host PortForward

1 messages · Page 1 of 1 (latest)

sterile warren
#

Hi,
We would like to use the new dagger call functionality, been using go run ... for execution with v0.9 before.

How can we establish a connection to a service running on the dagger engine host now?

In contrast to the client the dag does not support the .Host() .

We have been using this mechanism from the v0.9 docs (https://archive.docs.dagger.io/0.9/757394/use-services/):

    // expose host service on port 3306
    hostSrv := client.Host().Service([]dagger.PortForward{
        {Frontend: 3306, Backend: 3306},
    })
...
WithServiceBinding("db", hostSrv).

Thanks.

restive geyser