Q: Is there a Dockerfile frontend syntax to refer to the resolved image pin
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, dockerfile
- Domain
- build-system
Research direction
The issue mentions Dockerfile frontend syntax and the ARG, FROM, LABEL, RUN, and ENV instructions, but names no repository files or tests. Start by tracing how the frontend resolves the FROM image and exposes build arguments. Done means the resolved image digest can be referenced in the requested metadata and runtime-related instructions, with tests covering the example.
Written by the indexing model from the issue text.
Description
If I want to add a label to refer to my baseimage is there a automatically filled argument I can use? (In the example below I get “latest” and not “sha256:…” of the actually used image. Ideally it is a implicate $ARG so it can also be used in RUN or ENV for the image to print it later.
ARG BRANCH=latest
FROM ubuntu:$BRANCH
LABEL org.opencontainerimage.base.name=docker.io/library/ubuntu:$BRANCH \
org.opencontainerimage.base.digest=<CURRENT FROM DIGEST>
- Dominant language
- Go
- Stars
- 10.3k
- Forks
- 1.5k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 48
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moby/buildkit
-
status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
area/dockerfile
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100