Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

PUT manifest failed: Got http: ContentLength=528 with Body length 0 #81

Open
fanux opened this issue Dec 16, 2020 · 0 comments
Open

PUT manifest failed: Got http: ContentLength=528 with Body length 0 #81

fanux opened this issue Dec 16, 2020 · 0 comments

Comments

@fanux
Copy link

fanux commented Dec 16, 2020

I want using this client to sync my image, But:

        manifest, err := c.SrcHub.ManifestV2(repo, tag)  // get manifest from src registry
	for _, layer := range manifest.Layers {
		digest := layer.Digest
		exists, err := c.DstHub.HasBlob(repo, digest)
                 ...
		reader, err := c.SrcHub.DownloadBlob(repo, digest)
                ...
		err = c.DstHub.UploadBlob(repo, digest, reader)
	}

	_, b, _ := manifest.Payload()
	fmt.Printf("manifet payload : %s", b)   // make sure the payload is not null
	err = c.DstHub.PutManifest(drepo, dtag, manifest)  // put manifest to destinate registry failed
        ...
	return nil

Put "https://index.docker.io/v2/fanux/alpinetest/manifests/latest": http: ContentLength=528 with Body length 0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant