Last active
July 1, 2024 15:33
-
-
Save ralphbean/39c5c7f7ddf345a1b982bc92998bede7 to your computer and use it in GitHub Desktop.
Embedded one container in another
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.redhat.io/ubi9/ubi:latest | |
RUN dnf -y install podman | |
# Change the graph root. | |
RUN sed -i 's/^graphroot = .*/graphroot = "\/usr\/lib\/containers\/storage"/' /etc/containers/storage.conf | |
# Ignore chown errors | |
RUN sed -i 's/#ignore_chown_errors = "false"/ignore_chown_errors = "true"/' /etc/containers/storage.conf | |
# TEST workaround for bootc-build-image error (maybe overlay issue) | |
RUN mkdir -p /usr/lib/containers/storage && \ | |
IID=$(podman pull quay.io/fedora/fedora:latest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment