-
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
Add podman image mount #6851
Add podman image mount #6851
Conversation
@mrunalp PTAL |
d34f6dd
to
f5ec590
Compare
Fixes: #1433 |
1a0df3b
to
b9f9864
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Just a few comments from the code review. Will do some testing on my machine now.
I wonder if the error logic should be similar to rmi
where we continue removing images even if there was an error removing one. I imagine it could be useful.
Maybe an --ignore
flag for unmount could be helpful as well to ignore errors if the image and/or the mount don't exist anymore.
Tests fail locally as well:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rootless changes LGTM
cf85df3
to
81773ef
Compare
@vrothberg @giuseppe @mheon @TomSweeneyRedHat @ashley-cui @QiWang19 @baude I think this is ready to go and has passed the tests, now waiting for remote, which does not use this code. |
@rhatdan looks like you're on the happy test hunt still unless this is happening everywhere. |
I restarted to see if those were flakes. |
fb803a1
to
97165b6
Compare
There are many use cases where you want to just mount an image without creating a container on it. For example you might want to just examine the content in an image after you pull it for security analysys. Or you might want to just use the executables on the image without running it in a container. The image is mounted readonly since we do not want people changing images. Signed-off-by: Daniel J Walsh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let's get this in. @giuseppe PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
There are many use cases where you want to just mount an image
without creating a container on it. For example you might want
to just examine the content in an image after you pull it for
security analysys. Or you might want to just use the executables
on the image without running it in a container.
The image is mounted readonly since we do not want people changing
images.
Signed-off-by: Daniel J Walsh [email protected]