containerd / accelerated-container-image

A production-ready remote container image format (overlaybd) and snapshotter based on block-device.
Apache License 2.0
405 stars 73 forks source link

Support image conversion and push across repositories #230

Open xianbintang opened 11 months ago

xianbintang commented 11 months ago

What is the version of your Accelerated Container Image

latest

What would you like to be added?

The convertor command currently only supports image conversion within the same repository. However, it may be beneficial to support image conversion between two different repositories. For example, pulling an image from repository A, performing the conversion, and then pushing it to repository B. To achieve this, two new flags could be added: --output-repository and --output-username. If specified, the converted image would be pushed to the specified output-repository. If these flags are not provided, the command will continue to follow the existing logic.

Why is this needed for Accelerated Container Image?

For large enterprises, having multiple image repositories is common, and it is important to support image conversion and push across repositories. Otherwise, users would need to perform unnecessary operations such as pulling the image from one repository and pushing it to another before conversion.

Are you willing to submit PRs to contribute to this feature?