Skip to content

Can oci-archive use a network location? #434

@kolotaev

Description

@kolotaev

Hello 👋

Is it possible to make image work with network locations?

Example is:

    task "my-http" {
      driver = "podman"
      config {
        image = "oci-archive:http://10.211.55.9:9999/uploads/myhttp.tar"
      }
    }

Where myhttp.tar is an archive that I serve via HTTP.

I created it via podman save --format oci-archive -o /tmp/uploads/myhttp.tar myhttp:latest.

Note, that podman itself supports getting archive be it filesystem or a network location. Consider this:

podman load -i http://10.211.55.9:9999/uploads/myhttp.tar
Getting image source signatures
Copying blob 99cf8ab899fa skipped: already exists  
Copying blob 41cbe294e54d skipped: already exists  
Copying blob 870027e70bc9 skipped: already exists  
Copying blob fc8a6b71fc5e skipped: already exists  
Copying config 58e9d534e8 done  
Writing manifest to image destination
Storing signatures
Loaded image: myhttp:latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions