89luca89 / lilipod

Lilipod is a simple container manager, able to download, unpack and use OCI images from various container registries.
GNU General Public License v3.0
240 stars 11 forks source link

No way to specify image architecture for pull command #12

Open NotKit opened 5 months ago

NotKit commented 5 months ago

Hello. I'm trying to use lilipod as a lightweight container manager for running distrobox on Ubuntu Touch and SailfishOS (mobile Linux distros).

It generally works after few workarounds like a wrapper for missing getsubids (similar to #7) and fixing subuid ranges on host. However for images like registry.opensuse.org/opensuse/tumbleweed:latest there seems to be no way to specify the correct architecture to fetch, and it will default to incompatible amd64 on arm64 host.

I'm not very familiar with OCI tools syntax, so please mention if this can be workarounded like by specifying the arch in the URL.

89luca89 commented 3 months ago

For now I'm not planning support for architecture, we will see in the future :+1:

NotKit commented 3 months ago

Do you possibly know which path in code is responsible for selecting amd64 by default? Would be nice if we could patch it at least when it's run on arm64 hosts.

89luca89 commented 3 months ago

I assume 'pkg/image_utils.go:77' it possibly needs some crane.Options in the crane.Pull