Closed PDVJAM closed 12 months ago
Yeah, that is definitely something with the nginx, because if I do registry wo proxy - all works:
INFO[0053] Copying image ref 4/5 from="docker://registry.digitalocean.com/.../fe:v3" to="docker://127.0.0.1:443/v2/fe:v3"
Getting image source signatures
Copying blob d68f2f1a5d31 [--------------------------------------] 0.0b / 0.0b
Copying blob 904e9a84b7a0 skipped: already exists
Copying blob e7e6b7606c1a skipped: already exists
Copying blob e2c28eeda74b skipped: already exists
Copying blob 7264a8db6415 skipped: already exists
Copying blob 681a0b221c96 done
Copying blob 62879395397a done
Copying blob e7b2b4c12840 done
Copying blob cda0560b0ea5 done
Copying blob d06a03355179 done
Copying blob 5a570be44733 done
Copying blob 59b05be6bfb6 done
Copying blob 13b73343cc72 done
Copying config b0372eb7cb done
Writing manifest to image destination
Storing signatures
Kinda strange.
Thanks for your report.
skopeo copy docker://$source dir:$tmp && skopeo copy dir:$tmp docker://$dest
, does that work?skopeo copy
sets a Content-Length
header in such a copy, while docker push
does an on-line compression and quite possibly doesn’t set one.http_user_agent
condition in the quoted config… it is very tempting to me to assume that there might be some other User-Agent-based condition that lets Docker through.Does timing make a difference? If you skopeo copy docker://$source dir:$tmp && skopeo copy dir:$tmp docker://$dest, does that work?
Yep, it is the same.
I see a http_user_agent condition in the quoted config… it is very tempting to me to assume that there might be some other User-Agent-based condition that lets Docker through.
Tried to remove this block, but it is the same.
Thank you. Since it works with the direct connection - I can finish my task. Probably later will try to investigate more, but not now.
Hey. I have a private docker registry with nginx in front. If I do docker pull, tag, and push to this registry - everything works without problems. But If I do the same with skopeo - it gives me 413 errors in the end. Please, suggest, what might be wrong.
I have added client_max_body_size 0; into nginx configuration everywhere, but no changes. So seems something with the skopeo.
My nginx:
Docker compose for registry:
Ordinary docker pull,tag,pull:
And with the skopeo: