-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Mount image filesystem #1433
Comments
This is possible with containers/storage, though I believe the mounts will have to be read-only given that there's no container associated with them - if you want to alter the filesystem and make new images, you could have to create a container and |
@mheon Thanks, the read-only state is what I need. For now, It would be nice to have it in |
@nalind WDYT? |
Would be nice to be able to do this inside a container. |
Rootless podman inside of the container should do what you need once mounting images is implemented, especially given there's no real need to share storage between podman in the image and podman outside of the image. |
Right, you can do this now by just running podman inside of container. |
should we just implement this with a container create and a mount? |
Do we need to? I think c/storage might support mounting images already, in which case it's just wiring up a command to do the heavy lifting |
@nalind How hard would this be to do? Just mount the image layer Read/Only? |
I think this could be done, fairly easily but we would need interfaces added to containers/storage to mount an image read/only with no upper container. |
Still no one has worked on this one for a year. I am adding some support for mounting container storage read/only in containers/storage#404 |
If no one is working on this, I can work on this.
Can this be done with a dummy container config without new top layer, which will be deleted with umount? |
It could be, but it would seem better to just be able to mount the image read/only. |
@kunalkushwaha, are you planning to work on that? I'm going through old issues and do some cleanups. |
Hi @vrothberg Yes, I started working on this now. /assign |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
@kunalkushwaha I still working on this, correct? |
@rhatdan Yes, I am working on this. Once c/storage have |
The storage PR needs a rebase. |
@ashley-cui PTAL |
A friendly reminder that this issue had no activity for 30 days. |
I have a PR up for this one. #6851 |
this can now be done by podman |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
Description
It would be nice to be able to mount the filesystem of the image with
podman mount
.Is there some easy way to achieve this? (Now, I am doing
podman create
+podman mount
.)Thanks.
The text was updated successfully, but these errors were encountered: