forked from TrueCloudLab/action-env
[#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:
parent
7b22c1fb65
commit
bc7e4fecbd
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue