moby / moby/buildkit

containerd: unable to use local image from nerdctl

Open
#4,465 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/containerd
Dominant language
Go
Stars
10.3k
Forks
1.5k
Avg merge
1d 23h
Merged PRs (30d)
48

Description

Docker not installed
The containerd used
I have a mirror image

nerdctl images

REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE
nginx test01 0d17b565c37b 3 weeks ago linux/amd64 149.1 MiB 54.1 MiB

cat Dockerfile

FROM nginx:test01
RUN echo yes

He went back to the image warehouse to retrieve the image
Will not use local

Do brothers have a way to solve it?
I am using Buildkit v0.12.3. Linux amd64. tar. gz

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the shown case with nerdctl images and the Dockerfile on BuildKit v0.12.3; first verify how the local image is made available to the builder. Trace image resolution through the BuildKit/containerd integration. Done means FROM nginx:test01 uses the existing local image without retrieving it from the registry.

Written by the indexing model from the issue text.

Assessment

Tech stack
dockerfile, linux
Domain
build-system, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.