Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Last active August 25, 2022 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaeltuelho/bcabfb06e9380a79c11143fc9c7e30b4 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/bcabfb06e9380a79c11143fc9c7e30b4 to your computer and use it in GitHub Desktop.

Warning this procedure was tested in Fedora 34 using Fish shell.

Requirements:

podman-3.4.0-1.fc34.x86_64
podman-docker-3.4.0-1.fc34.noarch

Disable the registry prompt by setting the short-name-mode="disabled" configuration property of Podman in /etc/containers/registries.conf

Start Podman service to listen on socket and grant access to users:

sudo systemctl start podman.socket
systemctl --user enable podman.socket --now

The following commands to check that all is up and running: podman-remote info

curl -H "Content-Type: application/json" --unix-socket /run/user/(id -u)/podman/podman.sock http://localhost/_ping

Set the following environment variables (Fish shell way):

set DOCKER_HOST unix:///run/user/(id -u)/podman/podman.sock

In case of problems you can try diabling RYUK

set TESTCONTAINERS_RYUK_DISABLED true

Create ~/.testcontainers.properties and the following properties:

docker.host = unix\:///run/user/1000/podman/podman.sock
ryuk.container.privileged = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment