Skip to content

Podman

Access MacOS host from a podman container

Reference:

Simply use host.containers.internal as a reference to external IP address.

Run the following snippets in separate terminals.

Terminal 1 Terminal 2
 podman run -it --rm busybox:1.36.0
/ # nc host.containers.internal:23456
Hello from busybox
 nc -l 0.0.0.0 23456
Hello from busybox