Follow

is it possible to access another computer in the local network from within a container (on macos, i.e. without `--network=host`) without forwarding the specific port to the local host and use `host.docker.internal`?

@bake I have only done this on Linux, but yes it is possible. You can access any computer your host can connect to via IPv4 address if the IP ranges don't overlap with the ones Docker uses. If you want to use hostnames you'll probably need --dns=your-local-resolver.

Sign in to participate in the conversation
Cybrespace

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!