containers/podman

[Docs]: More Differentiation between save/load and import/export

已關閉

#22,155 建立於 2024年3月25日

 (5 則留言) (1 個反應) (0 位負責人)Go (3,107 個分叉)batch import
ContribfestGood First Issuedocumentationkind/featurevolunteers-wanted

倉庫指標

星標
 (31,686 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Feature request description

I find the documentation is a bit sparse about the differences between saving and loading images, and exporting and importing containers. From the wording, it implies to me that the main difference is that save/load are used for images, export is used for containers. However, if I understand correctly:

  • save/load save an image using all the layers, to an OCI/etc. format
  • export/import just use regular tarballs of the container's filesystem, that I could extract and have a look at. Layers are therefore not preserved.
  • export creates the full tarball, not only changes that have occurred over the top of the last image layer (?)
  • Export works on containers, but import will then create an image from this(?)

For example:

The image of the container exported by podman export can be imported by podman import. To export image(s) with parent layers, use podman save. It's not totally clear to me whether the emphasis here is on the fact that the parent layers are included when saveing, or on the fact that it is used on images, rather than containers.

I think a few sentences in the documentation for all four commands more clearly differentiating the use of each command pair and contrasting when you would use which would be really useful.

As an aside, perhaps a command that could do a more full system migration might be useful. I had to system reset to ensure I got off the FUSE drivers and start again with kernel namespace mounting, so my reason for needing this is trying to get myself set back up again to where I was. I somewhat expected export to export the full container, but it seems it may be best to commit the running containers and then change the create command from inspecting them in order to use the new image with any working changes. EDIT: I guess ihs may be what checkpoint does; I'm running rootless so didn't have that option.

Suggest potential solution

No response

Have you considered any alternatives?

No response

Additional context

No response

貢獻者指南