ocipkg icon indicating copy to clipboard operation
ocipkg copied to clipboard

Docker does not allow image pulling due to invalid image configure

Open termoshtt opened this issue 3 years ago • 1 comments

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 avatar Jul 15 '22 15:07 termoshtt

This is not a necessary feature. Drop from 0.1.0

termoshtt avatar Jul 15 '22 16:07 termoshtt