- add a new alias to your shell (bash or zsh) to create a temporary Unix Domain Socket for podman
you need
jq
installed confirm the path forpodman.sock
withpodman system connection list --format=json
podman-sock='rm -f /tmp/podman.sock && ssh -i ~/.ssh/podman-machine -p $(podman system connection list --format=json | jq ''.[0].URI'' | sed -E ''s|.+://.+@.+:([[:digit:]]+)/.+|\1|'') -L''/tmp/podman.sock:/run/user/501/podman/podman.sock'' -N core@localhost'
- set the following env vars to configure Test Containers for
podman
export DOCKER_HOST=unix:///tmp/podman.sock [15:35:52]
export TESTCONTAINERS_CHECKS_DISABLE=true
export TESTCONTAINERS_RYUK_DISABLED=true
Reference: testcontainers/testcontainers-java#2088