[#6] oci-runner: Use non-standard socket path to avoid collisions

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2024-12-26 17:44:44 +03:00
parent 7b22c1fb65
commit bc7e4fecbd

View file

@ -10,10 +10,15 @@ RUN apt-get update && \
ln -s /usr/bin/podman /usr/local/bin/docker && \
echo root:10000:1000 > /etc/subuid && \
echo root:10000:1000 > /etc/subgid && \
echo '#!/bin/bash\npodman system service -t 0 unix:///var/run/docker.sock &\ndisown' > /usr/local/bin/podman-service.sh && \
echo '#!/bin/bash\npodman system service -t 0 unix:///tmp/podman-service.socket &\ndisown' > /usr/local/bin/podman-service.sh && \
chmod +x /usr/local/bin/podman-service.sh
# Configuration for podman inside rootless podman
COPY containers.conf /etc/containers/containers.conf
COPY registries.conf /etc/containers/registries.conf
COPY storage.conf /etc/containers/storage.conf
# Configuration for testcontainers
ENV DOCKER_HOST=unix:///tmp/podman-service.socket
ENV TESTCONTAINERS_DOCKER_SOCKER_OVERRIDE=/tmp/podman-service.socket
ENV TESTCONTAINERS_RYUK_DISABLED=true