Files
podman-in-docker/Dockerfile
Petr Polezhaev faabdf616d
Some checks failed
Build-and-publish podman-in-docker / build-and-push (push) Failing after 2m49s
Split configuration layers out of the dnf install layer
2026-02-07 22:45:32 +03:00

29 lines
801 B
Docker

ARG VERSION
FROM quay.io/podman/stable:${VERSION}
ARG REPO_MIRROR
RUN set -e; \
source /etc/os-release; \
export ARCH=`uname -m`; \
if ! test -z "${REPO_MIRROR}"; then \
dnf config-manager setopt \
fedora.baseurl=${REPO_MIRROR}/fedora/linux/updates/${VERSION_ID}/Everything/${ARCH}/; \
dnf config-manager setopt fedora.metalink=; \
dnf config-manager setopt \
updates.baseurl=${REPO_MIRROR}/fedora/linux/releases/${VERSION_ID}/Everything/${ARCH}/os/; \
dnf config-manager setopt updates.metalink=; \
fi;
RUN set -e; \
dnf install -y podman-docker; \
dnf clean all; \
rm -rf /var/cache/yum;
RUN set -e; \
touch /etc/containers/nodocker; \
rm -f /etc/containers/storage.conf;
ENTRYPOINT ["/usr/bin/podman", "system", "service", "--time", "0", "unix:///var/run/docker.sock"]