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 is an instance of Mastodon, a social network based on open web protocols and free, open-source software. It is decentralized like e-mail.