28 minutes ago · Tech · hide

I’d always assumed you needed container registry software to docker pull from. TIL: a webserver will do, podman pulling is just GETsGETs (and some HEADs): GET /v2/ → 200 (any body) GET /v2/<name>/manifests/<tag|digest> # content-type: the manifest's mediaType, e.g. application/vnd.oci.image.manifest.v1+json GET /v2/<name>/blobs/<digest> # content-type: anything (eg octet-stream ) To serve an image from a webserver you neeed to: Get the image into an OCI layout, either from local podman storage: skopeo copy containers-storage:localhost/hello-world:latest oci:layout:latest or from Docker Hub: skopeo copy --format oci docker://docker.io/library/hello-world:latest oci:layout:latest copy the files to those paths: r=site/v2/hello-world # the repo's URL path: /v2/<name> mkdir -p $r/manifests $r/blobs # the two paths clients GET touch site/v2/index.html # so we get a 200 on /v2/ for f in layout/blobs/sha256/*; do cp $f $r/blobs/sha256:${f##*/}; done # clients ask for sha256:<hex>, the layout…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town