Use of FQIN in Dockerfile FROM instructions. #23954
Labels
good first issue
Likely to be an easy fix
type/feature
Completely new functionality. Can only be merged if feature freeze is not active.
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
This is a request for the use of
Fully Qualified Image Names (FQIN)
in DockerfileFROM
instructions.eg.
FROM alpine:3.17
->FROM docker.io/library/alpine:3.17
The use of short names is ambiguous as the registry it pulls from might depend on docker (or alternative build system) configuration. This is better explained in containers-registries.conf man page.
Docker uses hardcoded configuration in order to search for short names on docker.io registry :
But this behaviour might be different if
registry-mirrors
is set in dockerdaemon.json
.This would also improve support for docker alternatives as well (e.g. buildah, where the docker.io HUB might not be the default registry), while staying 100% docker compatible.
Lines that would need patching :
gitea/Dockerfile
Line 2 in 797babb
gitea/Dockerfile
Line 26 in 797babb
gitea/Dockerfile.rootless
Line 2 in 797babb
gitea/Dockerfile.rootless
Line 26 in 797babb
Thank you for considering this request.
Screenshots
No response
The text was updated successfully, but these errors were encountered: