Skip to content

[Bug]: image pull --platform doesn't provide any output #1035

Closed

Description

@naveen1583

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

container image pull --os linux --arch amd64 public.ecr.aws/ubuntu/ubuntu:24.04
container image pull --os linux --arch x86_64 public.ecr.aws/ubuntu/ubuntu:24.04
container image pull --platform linux/amd64 public.ecr.aws/ubuntu/ubuntu:24.04

Current behavior

I’ve been attempting to extract the x86_64 compatible image from the Apple Silicon Mac, but none of the provided commands yield any output.

Expected behavior

Should've pulled the image.

Environment

- OS: MacOs 26.2
- Xcode: 
- Container: 0.6.0

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Jan 9, 2026
  2. naveen1583 commented on Jan 9, 2026

    @naveen1583
    Author

    container image pull --debug public.ecr.aws/ubuntu/ubuntu:24.04

    Error: Unknown option '--debug'. Did you mean '--debug'?
    Usage: container image pull [--debug] [--scheme ] [--disable-progress-updates] [--arch ] [--os ] [--platform ]
    See 'container image pull --help' for more information.

  3. naveen1583 commented on Jan 9, 2026

    @naveen1583
    Author
    container image tag public.ecr.aws/ubuntu/ubuntu:24.04 992382343.dkr.ecr.us-west-2.amazonaws.com/ubuntu/ubuntu:24.04                                                                                                                                                 
    
    992382343.dkr.ecr.us-west-2.amazonaws.com/ubuntu/ubuntu:24.04
    
    container image ls    
    NAME                                                        TAG    DIGEST
    992382343.dkr.ecr.us-west-2.amazonaws.com/ubuntu/ubuntu  24.04  ef59d9e82939bbce08973bdf...
    public.ecr.aws/ubuntu/ubuntu                                24.04  ef59d9e82939bbce08973bdf...
    
    container image push 992382343.dkr.ecr.us-west-2.amazonaws.com/ubuntu/ubuntu:24.04
    Error: notFound: "Content with digest sha256:955364933d0d91afa6e10fb045948c16d2b191114aa54bed3ab5430d8bbc58cc"
    
  4. Ronitsabhaya75 commented on Jan 10, 2026

    @Ronitsabhaya75
    Contributor

    the root cause and have a fix ready for this issue.

    Problem

    The Arch enum in Sources/Services/ContainerAPIService/Client/Arch.swift only recognizes amd64 and arm64, but not the widely-used x86_64 alias. When users specify --arch x86_64 or --platform linux/x86_64, the platform parsing fails silently with no error message.

    Solution

    I've added architecture name normalization by implementing a custom init?(rawValue:) that accepts common aliases:

    • x86_64, x86-64 → normalizes to amd64
    • arm64 → stays as arm64
    • Case-insensitive matching
      This is 100% backward compatible - all existing code using amd64 continues to work.

    I'll submit a PR shortly with these changes. Would appreciate review from the maintainers!

  5. jglogan commented on Jan 12, 2026

    @jglogan
    Contributor
    container image pull --debug public.ecr.aws/ubuntu/ubuntu:24.04
    
    Error: Unknown option '--debug'. Did you mean '--debug'?
    Usage: container image pull [--debug] [--scheme ] [--disable-progress-updates] [--arch ] [--os ] [--platform ]
    See 'container image pull --help' for more information.
    

    @naveen1583 Yeah this one is a known (and annoying) issue: #360

    @cnaples79 submitted a PR that reorders the --debug arg to turn the command you show into the correct invocation:

    container --debug image pull public.ecr.aws/ubuntu/ubuntu:24.04
    

    Unfortunately that one can't be merged because we're waiting on commits to be signed. This week I'm going to look into swift-argument-parser to see if there's any more elegant way to deal with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions