-
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
podman save --format oci-dir should be able to create a tagged image #20515
Comments
@vrothberg @mtrmac PTAL |
|
Nifty. Might I suggest that the podman-save manpage be updated to suggest using push instead and perhaps even to note that save fails to emit tags? |
Please open a PR to make the change, I would also suggest that you meantion the change in both podman save and podman push man pages. |
Are you interested in opening a PR for that? If not, we can follow up. |
Will do (probably tomorrow). I wrote a first draft of the podman save part: https://github.com/amluto/podman/tree/save-docs
Maybe? The current semantics are far from clear to me, and I have no idea whether the current semantics are intentional (or are intentional in the sense of bug-for-bug compatibility with Docker). Are you saying that, if the image being saved is already tagged, then podman save will copy the literal tag name to the destination? Perhaps someone familiar with the current and intended semantics of podman save should be the one to document it :) |
Yes, if you replace the input image |
Feature request description
Tools that use OCI image directories seem to generally expect that the images intended for direct use are tagged. For example, umoci seems to be entirely incapable of working with untagged images (opencontainers/umoci#511).
But podman save does not appear to be able to tag its output. For example:
$ podman save --format=oci-dir <hash> -o <directory name>
does not result in an
org.opencontainers.image.ref.name
annotation.skopeo can do this:
$ skopeo copy containers-storage:<hash> oci:<dir>:<tag>
Suggest potential solution
A couple of options come to mind:
podman could support colon-delimited syntax, like this:
$ podman save --format=oci-dir <hash> -o <directory name>:<tag>
Or podman-save.1 could suggest using skopeo for this purpose.
Have you considered any alternatives?
Yes -- as above, skopeo can solve this particular problem.
Additional context
No response
The text was updated successfully, but these errors were encountered: