Replies: 1 comment
-
|
The The rootful case works because root can write to the overlay upperdir. The rootless Two fixes: 1. Use Add to your Containerfile: FROM quay.io/podman/stable
RUN dnf install -y fuse-overlayfs && dnf clean all
# Configure rootless podman to use fuse-overlayfs
RUN mkdir -p /home/podman/.config/containers && \
echo '[storage]' > /home/podman/.config/containers/storage.conf && \
echo 'driver = "overlay"' >> /home/podman/.config/containers/storage.conf && \
echo '[storage.options.overlay]' >> /home/podman/.config/containers/storage.conf && \
echo 'mount_program = "/usr/bin/fuse-overlayfs"' >> /home/podman/.config/containers/storage.conf && \
chown -R podman:podman /home/podman/.config2. Use # As the podman user inside the krun container:
podman --storage-driver vfs run --net=host alpine idOr set it permanently: # /home/podman/.config/containers/storage.conf
[storage]
driver = "vfs"The root cause: krun uses libkrun to run a minimal VM with virtiofs for the filesystem. Native overlay inside virtiofs + user namespaces has known issues with directory creation in the upperdir. Also, the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While running
$ podman --runtime krun run --userns nomap --rm -it localhost/podman-in-krun:latestand trying to launch rootless podman inside, I get error:Full output:
Containerfile:
Beta Was this translation helpful? Give feedback.
All reactions