New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rootless podman pull: Error: kernel does not support overlay fs #15255
Comments
Do you have fuse-overlay installed? |
On fedora 36 this worked fine for me. $ podman --root ./image_storage pull ubuntu:20.04 |
You can setup rootful additionalimagestore and use it with rootless users as long as you use fuse-overlay, correct @giuseppe |
Hi @rhatdan
Could you explain why is it needed in this case? |
yes, that should work as long as the additionalimagestore has a @amirgon what is the underlying file system where you are trying to pull ( |
It says
But the image store in my case is read-only on the client side. Should I still set |
yes, you need both If you use fuse-overlayfs for the rootless user, then it will present files with the correct ownership, otherwise native overlay will show all files with mode 0755. |
It works! I've added to
Worth mentioning this in Exploring additional image stores in Podman. |
I added
But when I run
My podman is 4.3.1. Also it seems logical that I would want to apply special permissions when writing to a to-be-shared path, but not necessarily to my own user's local storage? |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I'm trying to create an image storage on a shared directory, to be used with
additionalimagestores
.Following Exploring additional image stores in Podman, I'm running:
Fails with:
Running
sudo podman --root ./image_storage pull
works, but then the created image storage cannot be used by a rootless podman.When setting
additionalimagestores
to point to a readonly share with the image storage created withsudo podman
, I'm getting:$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE R/O docker.io/library/ubuntu 20.04 3bc6e9f30f51 7 days ago 75.2 MB true $ podman run --rm -it ubuntu:20.04 Error: creating /etc/mtab symlink: permission denied
Rootless podman gives this error, but
sudo podman run --rm -it ubuntu:20.04
works here.As a workaround I can run everything with
sudo
, but it's not clear to me what is the issue with rootless podman here.I'm running podman 3.4.2 on Ubuntu 20.04.4, but also tried containerized podman from
quay.io/podman/stable
.Steps to reproduce the issue:
Create an image storage with
podman --root
Describe the results you received:
Error: kernel does not support overlay fs: unable to create kernel-style whiteout: operation not permitted
Steps to reproduce the issue:
sudo podman --root
additionalimagestores
podman run
an image from the storage imageDescribe the results you received:
Error: creating /etc/mtab symlink: permission denied
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Tried also with
podman run -it --rm quay.io/podman/stable
Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Creating the image storage on Ubuntu 20.04.4 LTS
Running the image on Fedora release 36
The text was updated successfully, but these errors were encountered: