<div dir="ltr"><div>When docker communicates with Crane, the docker client receives redirects that specify the full path to all the files you are interested in. Docker then follows the redirects to retrieve the content from Pulp. The path for the redirects is formed using the docker_web_distributor config. The redirects are stored in JSON files. The format for the file is documented here[0]. Here[1] is an example of a URL for a manifest in repository with id 'test-repo-id':</div><div><br></div><div><br></div><div>[0]  <a href="https://docs.pulpproject.org/plugins/pulp_docker/tech-reference/distributor.html#redirect-file" target="_blank">https://docs.pulpproject.org/<wbr>plugins/pulp_docker/tech-<wbr>reference/distributor.html#<wbr>redirect-file</a><br></div><div><div>[1] <a href="https://pulp-hostname/pulp/docker/v2/test-repo-id/manifests/2/sha256:fe9261ebcce85f6e0657957a129dbd26d3897483ba0bbbbb9ab564bc81041906" target="_blank">https://pulp-hostname/pulp/<wbr>docker/v2/test-repo-id/<wbr>manifests/2/sha256:<wbr>fe9261ebcce85f6e0657957a129dbd<wbr>26d3897483ba0bbbbb9ab564bc8104<wbr>1906</a><br></div><div><br></div><br></div><div><br></div><div><br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 4, 2018 at 11:15 AM, Tom McKay <span dir="ltr"><<a href="mailto:thomasmckay@redhat.com" target="_blank">thomasmckay@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'd like to retrieve a file that is associated referenced in pulp, is there an API for that? I have info in foreman for a docker manifest (pulp id, storage path, etc) but am unsure how to retrieve it via pulp's API.<br></div>
<br>______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-dev</a><br>
<br></blockquote></div><br></div>