podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

Be able to specify architecture when pulling an image.

Open cdrage opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe

When pulling an image that has multiple architectures (AMD64, ARM64, etc.), we cannot specify which architecture to search for / pull.

For example, we cannot pull an image with the API that's the equivalent of:

podman pull cdrage/helloworld --arch arm64

Describe the solution you'd like

Modify:

    /**
     * Pull an image from a registry
     *
     * @param containerProviderConnection the connection to the local engine to use for pulling the image
     * @param imageName the name of the image to pull
     * @param callback the function called when new logs are emitted during the pull operation
     */
    export function pullImage(
      containerProviderConnection: ContainerProviderConnection,
      imageName: string,
      callback: (event: PullEvent) => void,
    ): Promise<void>;

To be able to pull a certain architecture as well.

We have the "Arch" parameter we can add to the API: https://docs.podman.io/en/latest/_static/api.html#tag/images/operation/ImagePullLibpod

Describe alternatives you've considered

No response

Additional context

No response

cdrage avatar Oct 15 '24 14:10 cdrage

I created https://github.com/containers/podman-desktop-extension-bootc/issues/919

@deboer-tim @benoitf @Firewall

Can we add this to next sprint so we can implement this functionality for bootc examples epic?

cdrage avatar Oct 15 '24 15:10 cdrage