container: Use fully qualified image name in FROM

Podman only resolves short image names through an unqualified search
registry, which is not configured by default on Arch (and on Ubuntu
setups without a registries.d file), so builds fail at the first step
with 'short-name "archlinux" did not resolve'. Naming the registry
explicitly makes the image build on any distro without per-distro
configuration.
This commit is contained in:
Jeena 2026-10-29 08:42:06 +09:00
parent 8a7af06983
commit 43dc757b92

View file

@ -1,4 +1,6 @@
FROM archlinux:latest
# Fully qualified registry: Podman on distros without an unqualified search
# registry configured (e.g. Arch or Ubuntu) cannot resolve the short name.
FROM docker.io/library/archlinux:latest
ARG USERNAME=dev
ARG UID=1000