As the title says basically - Does anyone know if and how it's possible on Proxmox 9.1+ to download the OCI images through the CLI instead of the GUI?
skopeo copy docker://$reference oci-archive:$path/$filename.tar.$reference=registry.example.org/name, $path=PVE::Storage::get_vztmpl_dir($cfg, $storage) (/var/lib/vz/template/cache in my case), $filename = PVE::Storage::normalize_content_filename($reference).skopeo copy docker://docker.io/hello-world:latest oci-archive:/var/lib/vz/template/cache/hello-world_latest.tarOk cool, will wait patiently for the next release.An API endpoint seems to be in develomment: [pve-devel] [PATCH storage v5 13/17] api: add storage/{storage}/oci-registry-pull method.
Otherwise it just doesskopeo copy docker://$reference oci-archive:$path/$filename.tar.
With$reference=registry.example.org/name,$path=PVE::Storage::get_vztmpl_dir($cfg, $storage)(/var/lib/vz/template/cachein my case),$filename = PVE::Storage::normalize_content_filename($reference).
We then would have for hello-world image:
skopeo copy docker://docker.io/hello-world:latest oci-archive:/var/lib/vz/template/cache/hello-world_latest.tar
curl -k --data-urlencode 'reference=docker.io/hello-world:latest' https://<PVE_IP>:8006/api2/extjs/nodes/pve/storage/local/oci-registry-pullcurl -k -d 'reference=docker.io%2Fsplunk%2Fsplunk%3Alatest' https://<PVE_IP>:8006/api2/extjs/nodes/pve/storage/local/oci-registry-pullWe use essential cookies to make this site work, and optional cookies to enhance your experience.