Replies: 9 comments 9 replies
-
Or do you want one totally separate from the local image? |
Beta Was this translation helpful? Give feedback.
-
From what I can tell, Can you clarify what you mean by "totally separate from the local image"? |
Beta Was this translation helpful? Give feedback.
-
Skopeo does not have any facility to “extract an image”, combining layers into a single filesystem reflecting all the overlay operations, and it’s been considered out of scope so far. WRT the “buildkit” reference, if this is within the context of a build, isn’t some kind of Buildah mount command the natural way to approach this? I have no idea what kinds of privileges that needs exactly, but it can’t be more privileges than the privileges to do the build in the first place, can it? |
Beta Was this translation helpful? Give feedback.
-
podman image mount does not require any running of a container, it does require podman unshare, to enter the user namespace. And everything can be done in rootless mode.
|
Beta Was this translation helpful? Give feedback.
-
A friendly reminder that this issue had no activity for 30 days. |
Beta Was this translation helpful? Give feedback.
-
Thoughts, if you can not mount, then most likely this will not work. You also can not copy correctly if you don't have more then 1 UID and have CAP_CHOWN (or CAP_CHOWN within the User Namespace) you are running. This is needed in order to set different UIDs then the root UID of the user namespace. |
Beta Was this translation helpful? Give feedback.
-
Or
|
Beta Was this translation helpful? Give feedback.
-
@rhatdan , I have a simlar problem for a Live CD ( I would like to be able to "copy/export" the full structure of
Essentially I'd like to copy an image locally-built into a chroot environment, with the following "pseudo-commands"
Running podman commands inside the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply @mtrmac Understood for the What I described for the "single container image" export is very specific to my use-case indeed. I just need a "one-time" export, and just for "copying/moving" the container image to a Live CD ISO filesystem ( In my previous example, I did skip the ordinary podman build commands, as I didn't feel that it was "important".
In any case I do have a "workaround", but I'd rather prefer something like this (which is not possible):
|
Beta Was this translation helpful? Give feedback.
-
With buildkit I can output my image to a local directory via
--output type=local
, which copies over the root file system. I am looking for a similar feature to copy the root file system from an existing image in a remote registry to the local file system. Is there any tool in the containers project that can support this use case?Obviously I can feed a one line Dockerfile to buildkit to accomplish this, just wanted to see if there were any alternatives.
Beta Was this translation helpful? Give feedback.
All reactions