Actions
Issue #3910
closeddocker pull fails with unexpected end of JSON input
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
2.17.1
Target Release - Docker:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 41
Quarter:
Description
Output of:
skopeo copy --format v2s1 docker://busybox:glibc dir:existingemptydirectory
was tared uploaded to Pulp, published which enables to serve the content as of from docker registry.
docker pull fails with:
$ docker pull localhost:1234/centos3@sha256:783f7f77b803b74c2f4cf0d61cc27ec404b6896f285106ed0a61ddff37e79833
Trying to pull repository localhost:1234/centos3 ...
unexpected end of JSON input
for more info and investigations see here https://github.com/containers/skopeo/issues/526#issuecomment-411901330
Actions
docker pull fails with unexpected end of JSON input
closes #3910 https://pulp.plan.io/issues/3910
json.load and json.dump reorderes manifest file. The "signatures" field is supposed to be at the end of the JSON, because docker while stripping the signatures operates on the raw bytes of the data, without regard to JSON structure.