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

Support to merge sealer images #2176

Open
1 of 2 tasks
kakaZhou719 opened this issue Apr 10, 2023 · 3 comments
Open
1 of 2 tasks

Support to merge sealer images #2176

kakaZhou719 opened this issue Apr 10, 2023 · 3 comments
Labels
kind/feature Category issues or PRs related to feature request

Comments

@kakaZhou719
Copy link
Member

kakaZhou719 commented Apr 10, 2023

Issue Description

Type: feature request
example:

i have two image :
image A is amd64 architecture.
image B is arm64 architecture.

i want to merge those two image as a new one image C.

Describe what feature you want

Additional context

Add any other context or screenshots about the feature request here.

@kakaZhou719 kakaZhou719 added the kind/feature Category issues or PRs related to feature request label Apr 10, 2023
@kakaZhou719
Copy link
Member Author

kakaZhou719 commented Apr 10, 2023

for pack different arch image together

At present ,We can do it manually。

# create a manifest with the new name
sealer alpha manifest create all-in-one:v1

# add ImageID to manifest 
sealer alpha manifest add all-in-one:v1 b4aef6cb03b3(arm)
sealer alpha manifest add all-in-one:v1 a661b497f201(amd)

# inspect the result.
sealer alpha manifest inspect all-in-one:v1

Or we develop a new method:

sealer alpha manifest add amd:v1 arm:v1 -t all-in-one:v1

-t flag : specify the wanted new image name, if null, will create a new one. if not null, it must be an existed manifest name.

args: if it is a single image just add it ,if it is a manifest will add it’s s all instance no matter what platform it is.

@kakaZhou719 kakaZhou719 added this to the release-0.10.0 milestone Apr 10, 2023
@kakaZhou719
Copy link
Member Author

kakaZhou719 commented Apr 10, 2023

for merge same arch image as a new one
this will only merge the same platform images, including layers, image specs and so on.

sealer alpha merge k8s:v1.22.15 mysql:v1 redis:v1 -t all-in-one:v1

@kakaZhou719 kakaZhou719 changed the title Support to merge different architecture images Support to merge sealer images Apr 13, 2023
@chatiti
Copy link

chatiti commented Apr 8, 2024

@kakaZhou719 Hi, I'm new to the program. I would like to try to solve the merge same arch image as a new one; but my question is, sealer alpha merge and sealer alpha manifest add both seem to merge two images, so why differentiate between different architectures and have two new commands? And now I think their merge implementations are similar, is this correct? Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or PRs related to feature request
Projects
None yet
Development

No branches or pull requests

2 participants