Project

Profile

Help

Issue #3910

closed

docker pull fails with unexpected end of JSON input

Added by ipanova@redhat.com over 5 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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 #1

Updated by ipanova@redhat.com over 5 years ago

  • Description updated (diff)
Actions #2

Updated by dkliban@redhat.com over 5 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 41

Added by ipanova@redhat.com over 5 years ago

Revision e04d8629 | View on GitHub

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.

Added by ipanova@redhat.com over 5 years ago

Revision e04d8629 | View on GitHub

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.

Actions #3

Updated by ipanova@redhat.com over 5 years ago

  • Status changed from NEW to POST
  • Assignee set to ipanova@redhat.com
Actions #4

Updated by ipanova@redhat.com over 5 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by dkliban@redhat.com over 5 years ago

  • Sprint/Milestone set to 2.18.0
Actions #6

Updated by dkliban@redhat.com over 5 years ago

  • Sprint/Milestone deleted (2.18.0)
Actions #7

Updated by dkliban@redhat.com over 5 years ago

  • Platform Release set to 2.17.1

Added by ipanova@redhat.com over 5 years ago

Revision 2ea1a9ad | View on GitHub

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.

(cherry picked from commit e04d862918220ae14151b250761049c29cc16efd)

Added by ipanova@redhat.com over 5 years ago

Revision 2ea1a9ad | View on GitHub

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.

(cherry picked from commit e04d862918220ae14151b250761049c29cc16efd)

Actions #9

Updated by ttereshc over 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF