Podman

Accessing host ports from inside a container

virtualisation = {
  oci-containers.containers = {
    example-container = {
      image = "example-image";
      extraOptions = [ "--network=slirp4netns:allow_host_loopback=true" ];
      };
    };
  };
};

From the container's config, reference host.containers.internal:PORT 


Revision #1
Created 2026-10-01 04:19:08 UTC by etorres
Updated 2026-10-01 04:25:21 UTC by etorres