-
Notifications
You must be signed in to change notification settings - Fork 80
Can I build and push to registry an OCI image which will run in docker? #304
Comments
acbuild master has the ability to build OCI images (it hasn't made it into a release yet). Currently it works with one of the older v1.0 release candidates, and needs to be updated to work with the current version of the spec. I'm waiting for v1.0 of OCI to be released before making the changes. acbuild doesn't support pushing images to a registry itself, perhaps you could import a built image into docker and upload it with that? I have no clue what docker's OCI support looks like. |
For reference, I've successfully built an OCI (-rc3) image with acbuild from master and pushed to a docker v2 registry with skopeo.
|
I am also trying to build an OCI with acbuild and to push it with skopeo:
However, when I try to pull this with Docker (v1.12.6), I get:
Any help is appreciated. @lucab could you maybe show us more details about how exactly you built and pushed the image? |
@mwuertinger I'm sorry but I wasn't pulling from docker, so I can't help much in your case. However your image seems to be there and I was able to pull with rkt and other tools and see the binary in there (which is however missing its dynamic libraries). I think this is skopeo missing some manifest adjustments needed by Docker but I'm no OCI expert, so you may want to report this there. |
Thanks, @lucab. Meanwhile I traced it back to https://github.com/moby/moby/blob/master/distribution/pull_v2.go#L629
I will try to debug this tomorrow and will report back here if I find something meaningful. |
@mwuertinger could you open an issue at https://github.com/projectatomic/skopeo? |
I finally got it to work and submitted a pull request for acbuild: #307 |
The PR is merged now, however, there's another problem: acbuild currently produces images in the If you want to use skopeo with acbuild right now, be sure to use version |
Yeah, |
Sounds good, @lucab! Do you have any insights on the roadmap for |
Like @lucab said. Another RC but nothing breaking expected. Updates to the
OCI format here are welcome!
…On Fri, May 12, 2017, 05:57 Luca Bruno ***@***.***> wrote:
Ah, that's a question for @runcom <https://github.com/runcom> and @vbatts
<https://github.com/vbatts> 😄 ^^^
My understanding is that there well be still a -rc6
<https://github.com/opencontainers/image-spec/milestone/13> in the
meanwhile, hopefully without (too many) breaking changes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#304 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEF6ZVNvdvG0yS1qA0Qi0pkaNS5sfrAks5r5CztgaJpZM4NMHx_>
.
|
Dumb question. Can I build and push to registry an OCI image which will run in docker? I would like to build container images that can be run in docker (would prefer rkt, but thats a different story) but I don't want to have to use docker to build the images.
Is that possible? What would be a simple example?
The text was updated successfully, but these errors were encountered: