docker-archive / migrator

Tool to migrate Docker images from Docker Hub or v1 registry to a v2 registry
Apache License 2.0
160 stars 82 forks source link

Migration error - could not verify layer data #87

Open TanmayaAPYL opened 8 years ago

TanmayaAPYL commented 8 years ago

We have a few thousands of images to migrate and 60% of them fail with an error like:

FATA[0051] could not verify layer data for: sha256:5362dab0aca263b53324da67a2769502e7e2f99417ae39594d7a15171e194b75. This may be because internal files in the layer store were modified. Re-pulling or rebuilding this image may resolve the issue 

A similar issue is reported by someone else on Docker forums as well: https://forums.docker.com/t/could-not-verify-layer-data-error-when-trying-to-push-image-with-content-trust/21790

mbentley commented 8 years ago

Hmm interesting; haven't seen much in the way of other reports of this error. What docker engine version are you running and what version is the v2 registry you're pushing to?

TanmayaAPYL commented 8 years ago

I've updated an existing upstream report for same issue with details - https://github.com/docker/docker/issues/26434#issuecomment-246632667

Registry:

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
registry            2                   c6c14b3960bd        6 weeks ago         33.31 MB