Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Last active September 21, 2023 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rafaeltuelho/5df7151d806b2862bc8e68de601924e1 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/5df7151d806b2862bc8e68de601924e1 to your computer and use it in GitHub Desktop.
Notes to run podman

When on MacOS

  • 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 for podman.sock with podman 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment