Replies: 1 comment
-
I stumbled across the same issue and looked at the implementation of It seems to be possible to resolve the issue by
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to run an image which I built as an OCI tarball using buildkit before. However, when trying to use the image I end up with the error parent snapshot does not exist: not found:
parent snapshot sha256:beda267780c51b52dc55a718be0aeea8824e4c4589877bebb16ef99e48760df7 does not exist: not found
This is the command I use to build the image:
sudo buildctl build --frontend=dockerfile.v0 --local context=. --local dockerfile=. -output type=oci,dest=my:test.tar,compression=uncompressed --export-cache type=inline
These are the image contents:
This is the piece of code that imports the image (excluding error handling):
When I try to create a container it fails with the error posted in the beginning:
I see that the snapshot is missing when I do
sudo ctr -n mynamespace snapshot ls
. The missing snapshot appears, when I pull the same image from the docker registry (to which I pushed it using buildkit).I realize, that the documentation says "Note that unreferenced blobs may be imported to the content store as well." but what does that mean? And I thought the blob would be referenced since it is included in the tarball.
I appreciate your help :)
Beta Was this translation helpful? Give feedback.
All reactions