moby / moby/buildkit

Context deadline exceeded on loading build definitions

Open
#4,342 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs/follow-up
Dominant language
Go
Stars
10.3k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
50

Description

when i run the command it started running and run till 10seconds and after counting exceeds 10s it throw this error

docker-compose -f docker-compose.yml build
[+] Building 10.7s (2/2) FINISHED                           docker:default 
 => ERROR [app internal] load build definition from Dockerfile       10.0s 
 => ERROR [app internal] load .dockerignore                          10.0s 
------
 > [app internal] load build definition from Dockerfile:
------
------
 > [app internal] load .dockerignore:
------
failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: failed to read dockerfile: no active session for 91fo7cba13oavjjyf4vfr0j5p: context deadline exceeded

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

Begin with the reported docker-compose -f docker-compose.yml build command and the Dockerfile/.dockerignore loading steps; investigate how the build context session reaches its deadline. Done means identifying a reproducible cause for the DeadlineExceeded failure and documenting or correcting it, with a regression check if the project provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
build-system, devops
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.