Skip to content
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 by name with CLI #1657

Open
pxeger opened this issue Jun 30, 2023 · 1 comment
Open

Mount image by name with CLI #1657

pxeger opened this issue Jun 30, 2023 · 1 comment

Comments

@pxeger
Copy link

pxeger commented Jun 30, 2023

Right now, if I want to use the containers-storage CLI tool to mount an image so I can explore its filesystem (without creating a container), I seem to have to:

  1. run containers-storage image myimagename
  2. take the "Top layer" id from its output,
  3. then use containers-storage mount toplayerid to mount it

The help page for containers-storage mount says it accepts a LayerOrContainerNameOrID, suggesting I should be able to use myimagename directly in the mount command. However, this doesn't work, producing an error layer not known while mounting myiamgename (and, curiously, an extra blank line).

Is this a bug? If not, it's a feature request: could this be made possible?

@pxeger
Copy link
Author

pxeger commented Jun 30, 2023

Bizarrely, it seems that if the --read-only option is used, then mounting with an image name works, and mounting with a layer ID doesn't work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant