Skip to content

Instantly share code, notes, and snippets.

@ralphbean
Last active July 1, 2024 15:33
Show Gist options
  • Save ralphbean/39c5c7f7ddf345a1b982bc92998bede7 to your computer and use it in GitHub Desktop.
Save ralphbean/39c5c7f7ddf345a1b982bc92998bede7 to your computer and use it in GitHub Desktop.
Embedded one container in another
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