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