diff --git a/.aliases b/.aliases index b54ad6a5..7fe29335 100644 --- a/.aliases +++ b/.aliases @@ -12,6 +12,8 @@ gradleWrapper () { rm $TEMPFILE } +alias podman-start='systemctl --user enable --now podman.socket && systemctl --user status podman.socket && ls -la /run/user/$UID/podman/podman.sock' +alias podman-use='export DOCKER_HOST="unix:///run/user/$UID/podman/podman.sock"; export TESTCONTAINERS_RYUK_DISABLED=true' alias gw=gradleWrapper alias pg-sql-run='docker run --name hsadmin-ng-postgres -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres:13.7-bullseye' diff --git a/README.md b/README.md index 9c279600..c3e63cb8 100644 --- a/README.md +++ b/README.md @@ -524,9 +524,15 @@ Summary for Debian-based Linux systems: sudo apt-get -y install podman ``` +2Then start it like this: + +```shell systemctl --user enable --now podman.socket systemctl --user status podman.socket ls -la /run/user/$UID/podman/podman.sock +``` + +These commands are also available in `.aliases` as `podman-start`. #### Use the Command Line to Run the Tests Against the Podman Daemon @@ -538,6 +544,8 @@ export DOCKER_HOST="unix:///run/user/$UID/podman/podman.sock" export TESTCONTAINERS_RYUK_DISABLED=true ``` +These commands are also available in `.aliases` as `podman-use`. + Disabling RYUK is necessary, because it's not supported by Podman. Supposedly this means that containers are not properly cleaned up after test runs, but I could not see any remaining containers after test runs.