[Error] Cannot create i386 distrobox unless image is already pulled
- Linguagem predominante
- Go
- Estrelas
- 13k
- Forks
- 541
- Merge médio
- 20h 47min
- PRs com merge (30d)
- 4
Descrição
**Describe the bug**
Cannot create i386/debian distrobox unless the image is already pulled.
**To Reproduce**
1. `distrobox create -i i386/debian`
2. `podman pull --arch i386 i386/debian`
3. `distrobox create -i i386/debian`
**Expected behavior**
The image gets "dynamically" pulled.
**Logs**
I couldn't upload a file. I'll try again after posting. Here is minimal "logs":
```
$ distrobox create -i i386/debian
Image i386/debian not found.
Do you want to pull the image now? [Y/n]:
Resolved "i386/debian" as an alias (/home/nebula/.cache/containers/short-name-aliases.conf)
Trying to pull docker.io/i386/debian:latest...
Error: unable to copy from source docker://i386/debian:latest: choosing an image from manifest list docker://i386/debian:latest: no image found in image index for architecture "amd64", variant "", OS "linux"
$ podman pull --arch i386 docker.io/i386/debian
Trying to pull docker.io/i386/debian:latest...
Getting image source signatures
Copying blob f1c1f592b556 done |
Copying config c03a87a4be done |
Writing manifest to image destination
c03a87a4be4cf8a42f6718c2878374c0de7d892b9d45a27d2d3d25dab7d33970
$ distrobox create -i i386/debian
Creating 'debian' using image i386/debian WARNING: image platform (linux/386) does not match the expected platform (linux/amd64)
[ OK ]
Distrobox 'debian' successfully created.
To enter, run:
distrobox enter debian
```
**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod?
podman
- Which version or podman, docker or lilipod?
podman version 5.6.2
- Which version of distrobox?i
distrobox: 1.8.1.2
- Which host distribution?
Fedora Linux 43 (Workstation Edition Prerelease) x86_64
- How did you install distrobox?
`dnf install distrobox`
**Additional context**
I think `distrobox-create` would need a `--arch` toggle to fix this, so it gets passed to `podman pull`. I don't know if the architecture can be inferred.
I have installed `qemu` and `qemu-user-static`. But `binfmt-support` is not available. Not sure if this is related.
This also happens in Ubuntu 25.10 (development release) with `qemu-user-static` (`qemu-user-binfmt`) and `binfmt-support` installed (there is no package named `qemu`).
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.