termoshtt / ocipkg

An OCI registry client for Rust desiged to use distribute static library as a "container"
Apache License 2.0
48 stars 8 forks source link

Docker does not allow image pulling due to invalid image configure #42

Open termoshtt opened 2 years ago

termoshtt commented 2 years ago

On https://github.com/termoshtt/ocipkg/commit/fe607df8aff71b7ea9f1fbed221d251efe574b41

cd examples/rust-lib
cargo ocipkg build

will generates target/debug/ocipkg-lib-example.tar, and it can be read from podman:

$ podman load < target/debug/ocipkg-lib-example.tar
Getting image source signatures
Copying blob a9e4b2e88cdf done  
Copying config 62f91216a7 done  
Writing manifest to image destination
Storing signatures
Loaded image: ghcr.io/termoshtt/ocipkg/rust-lib:fe607df8aff71b7ea9f1fbed221d251efe574b41

Then, it can be pushed to ghcr.io:

$ podman push ghcr.io/termoshtt/ocipkg/rust-lib:fe607df8aff71b7ea9f1fbed221d251efe574b41
Getting image source signatures
Copying blob 8bc21c49c28e done  
Copying config f7e44d8877 done  
Writing manifest to image destination
Storing signatures

But, we cannot pull it using docker:

$ docker pull ghcr.io/termoshtt/ocipkg/rust-lib:fe607df8aff71b7ea9f1fbed221d251efe574b41
fe607df8aff71b7ea9f1fbed221d251efe574b41: Pulling from termoshtt/ocipkg/rust-lib
55a302df70e5: Pull complete 
layers from manifest don't match image configuration

It seems that we still make some misunderstanding while creating ImageConfiguration.

termoshtt commented 2 years ago

This is not a necessary feature. Drop from 0.1.0