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

Update Docker source to add support for OCI specification instead of docker v2 #823

Open
soubinan opened this issue Feb 21, 2024 · 2 comments

Comments

@soubinan
Copy link

soubinan commented Feb 21, 2024

Change proposition: Replace Docker-Companion with Skopeo

Hi, this is related to #822

I progressed on my journey with Distrobuilder to convert "docker" images to lxc images.
As mentioned in #822, it is perfectly possible when your docker image spec follows the docker V2 specs. If you use the OCI spec its become an issue.

IE: While I was trying to convert the Homarr OCI image into LXC termplate format I received the following error message.

OCI index found, but Accept header does not support OCI indexes

I suspect it is because of Docker-Companion

This package last update has been done 3 years ago and it seems it supports only docker v2 specs...

I suggest to replace this one by Skopeo, more modern and up to date compared to Docker-Companion. And it is an official OCI tool.

I am trying to do it by myself, but I just started to use Distrobuilder two days ago and I am pretty new in Go, so I hoped a more experienced maintainer could do it ^^

I didn't fully got the data transaction point yet (about how Distrobuilder load layers and compose them when downloaded by Docker-Companion), so until I get a full picture of this I hope this implementation could be done by someone else in a next release :)

Thanks in advance

@soubinan soubinan closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
@soubinan
Copy link
Author

Just noticed skopeo do not deliver a package.. 😮‍💨

@soubinan
Copy link
Author

soubinan commented Feb 22, 2024

Hello,

I have been routed to https://github.com/containers/image by a skopeo maintainer
Image is the underlying package used by skopeo copy as he explained in containers/skopeo#2234

So it should be the perfect tool to use with the same benefits as skopeo

@soubinan soubinan reopened this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant