sidataplus / omop-core

Part of OMOP NHSO TCELS project
0 stars 0 forks source link

Fix rootless Podman cannot reach external host in host's network #15

Closed ThanePi closed 1 year ago

ThanePi commented 1 year ago

I'm initializing development scenario where using this repo to connect to production EMR as OMOP source DB and stuck that Trino cannot reach source DB which running outside Podman environment.

From deeply investigated, I notice that Podman is running in rootless by default which is fine but by the technical about networking. To let each machine freely talking each other may require privileges. image

Partially map external IP or URL to Podman internal IP should be a possible method,

Currently looking for solution. https://github.com/containers/podman/blob/main/docs/tutorials/basic_networking.md#slirp4netns https://docs.podman.io/en/latest/markdown/podman-network-create.1.html https://github.com/containers/podman/issues/13966

ThanePi commented 1 year ago

Problem confirmed that container cannot reach outside.

Image

ThanePi commented 1 year ago

Solved by WSL (Windows technical) config: https://learn.microsoft.com/en-us/windows/wsl/networking

image

No any change to podman or code.