Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] --additional-flags "--platform=linux/arm64" being ignored. #1644

Open
overflowz opened this issue Dec 29, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@overflowz
Copy link

overflowz commented Dec 29, 2024

Describe the bug
Hi, when creating an image and trying to add --additional-flags parameter, looks like it is getting ignored if I pass --platform=linux/arm64

To Reproduce
use podman as a container driver and run: distrobox create --image docker.io/arm64v8/debian --name debian --additional-flags "--platform=linux/arm64"

Expected behavior
should pull arm64 version of debian. instead, it shows this log:

Image docker.io/arm64v8/debian:latest not found.
Do you want to pull the image now? [Y/n]: Y
Trying to pull docker.io/arm64v8/debian:latest...
Error: choosing an image from manifest list docker://arm64v8/debian:latest: no image found in image index for architecture "amd64", variant "", OS "linux"

Logs

DEBU[0000] Trying "docker.io/arm64v8/debian:latest" ...
DEBU[0000] Loading registries configuration "/etc/containers/registries.conf"
DEBU[0000] Loading registries configuration "/etc/containers/registries.conf.d/00-shortnames.conf"
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux  [] } <-- why?
DEBU[0000] Attempting to pull candidate docker.io/arm64v8/debian:latest for docker.io/arm64v8/debian:latest

with dry-run (just posting not sure, can this extra space cause any issues too?):

...snip
--ulimit host
--userns keep-id
 --platform=linux/arm64
--entrypoint /usr/bin/entrypoint
docker.io/arm64v8/debian:latest
...snip

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod?: podman
  • Which version or podman, docker or lilipod?: 5.3.1
  • Which version of distrobox?: 1.8.0
  • Which host distribution?: CachyOS
  • How did you install distrobox?: pacman (CachyOS extra mirror)

Additional context
Without passing the --platform=linux/arm64, podman (docker too?) can't locate the arm version of the image.

Thank you!

@overflowz overflowz added the bug Something isn't working label Dec 29, 2024
@RainerKuemmerle
Copy link

Ran into a similar issue but using the --arch command line flag for podman. Simply working around it by manually executing the dry-run print allowed me to pull the image and enter it with distrobox afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants