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

Retag on image import #3840

Closed
jardon opened this issue Mar 14, 2023 · 2 comments
Closed

Retag on image import #3840

jardon opened this issue Mar 14, 2023 · 2 comments
Labels
inactive kind/support Question with a workaround

Comments

@jardon
Copy link

jardon commented Mar 14, 2023

Summary

When importing an image archive locally, I cannot retag the image afaik. This requires me to use other tooling to unpack and repack the archive with a new tag in the image metadata. It would be very helpful to be able to override the tags.

Why is this important?

When building rocks with rockcraft, the tooling uses the version field of the rockcraft.yaml to populate the tag. Instead of having to modify the artifact directly, would it be possible to pass a --tag option to microk8s ctr image import? I cannot pass a tag to the basename at this time.

Are you interested in contributing to this feature?

Not at this time.

Relevant Information:

Rockcraft Issue

@neoaggelos
Copy link
Contributor

Hi @jardon

Looks like this functionality is not supported by the ctr command, and there is nothing for us to do from the side of MicroK8s.

However, you might be able to do this in two separate steps:

microk8s ctr image import image.tar
microk8s ctr image convert $oldtag $newtag

@neoaggelos neoaggelos added the kind/support Question with a workaround label Mar 16, 2023
Copy link

stale bot commented Feb 9, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Feb 9, 2024
@stale stale bot closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive kind/support Question with a workaround
Projects
None yet
Development

No branches or pull requests

2 participants