Skip to content

docker build --check fails when resolving images #1547

@sandeshhardikar

Description

@sandeshhardikar

We have started using [docker build --check .](https://docs.docker.com/build/checks/) and we have multiple Dockerfiles in a repo. Lets assume they build up images foo:temp and bar:temp

The Dockerfile which builds up bar:temp consumes FROM foo:temp. Since the image is not built during docker build --check it throws up an error as docker --check is just doing checks and not building it

=> ERROR [internal] load metadata for docker.io/library/foo:temp.

How do i avoid this error , Is there a way to avoid it loading the image ?

Any recommendations would help as well

  • Docker version used : Docker version 28.4.0, build d8eb465
  • Os used : Ubuntu 22.04

Please let me know if you need more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions