#Mount local network in container

1 messages · Page 1 of 1 (latest)

brittle tinsel
#

Hi there,
I'm trying to access my localhost network from within the container object created by dagger.
I'm unable to find a way to do this via the Python SDK.
I've tried with a Dockerfile including CMD but that container is not running after the .build(context) command.
How can i achieve that?
Thanks!

blazing crane
#

@brittle tinsel what system are you running Dagger/Docker in?

brittle tinsel
#

hi! host is MacOS 11.6.1

#

i have a service running on my localhost:8080 and i need to access it from the container created with dagger

#

i believe that adding the flag --net=host to the run command will do the trick, but i cannot figure out how

blazing crane
brittle tinsel
#

i'll check that now

#

it worked! thanks, im such a docker newbie