1

I am running Podman on an M2 MacBook Air. There's an application running on the MacBook that provides a JDBC interface. I'm trying to connect to that JDBC interface with a client app running as podman container. So basically my (rootless) container needs to connect to my Macbooks localhost.

I tried the host-gateway approach: podman compose up -d

Here's the docker-compose.yml:

services:
  app:
    build: .
    network_mode: pasta:--map-gw
  extra_hosts:
    - hosts.containers.internal:host-gateway

... but i get unable to replace "host-gateway" of host entry "hosts.containers.internal:host-gateway": host containers internal IP address is empty

Not sure if this is an issue with podman on apple silicon environments. Currently on podman version 5.4.2 and podman machine running as applehv.

Can anyone help with this?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.